Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Generate Multiples | Functions Returning Arrays and Refactoring Loops
C# Methods and Modular Thinking
セクション 2.  2
single

single

bookChallenge: Generate Multiples

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

Write a method GenerateMultiples that receives number and limit parameters, and returns an array of multiples of a given number up to a specified limit.

  • The method must return an array containing all multiples of number that are less than or equal to limit.
  • If number is zero or greater than limit, the method must return an empty array.
  • The array must contain the multiples in ascending order, starting from number up to the largest multiple not exceeding limit.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  2
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt