セクション 1. 章 2
single
Challenge: Print Odd Numbers
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write a program that prints all odd numbers from 1 to 20 using a for loop with a custom step.
- Use a for loop to iterate through numbers starting at 1 and ending before 20.
- Set the step value in the loop so that only odd numbers are processed.
- Print each odd number on a new line.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください