セクション 1. 章 70
single
Challenge: Random Multiple of 7
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given a starting number.
Your task is to use a do-while loop to generate numbers starting from this value until you reach a multiple of 7.
Instructions
- Start with:
let number = 3; - Use a
do-whileloop that:- Adds the current
numberto an array. - Increments the
numberby 1. - Continues running while the previous
numberis not a multiple of 7.
- Adds the current
- Return all generated numbers.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 70
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください