差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
odin:control_flows [2025/06/20 11:19] – [for文] Fix a post positional particle freemikanodin:control_flows [2025/06/20 11:23] (現在) – [do ... while は存在しない] Modify comment to clearer freemikan
行 359: 行 359:
 answer: string answer: string
 for { for {
- // もう一度ユーザーから入力を受け付け+ // 少なくとも一度は処理を行う... 
 + // ... 
 + 
 + // もう一度繰り返すかどうかユーザーに尋ね
  answer = read_user_input(prompt = "続けますか? (yes/no)")  answer = read_user_input(prompt = "続けますか? (yes/no)")
   if answer == "yes" || answer == "no" {   if answer == "yes" || answer == "no" {
文書の先頭へ