Challenge: Generate Multiples
Tehtävä
Swipe to start coding
Write a method that returns an array of multiples of a given number up to a specified limit.
- The method must return an array containing all multiples of
numberthat are less than or equal tolimit. - If
numberis zero or greater thanlimit, the method must return an empty array. - The array must contain the multiples in ascending order, starting from
numberup to the largest multiple not exceedinglimit.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 8.33
Challenge: Generate Multiples
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Write a method that returns an array of multiples of a given number up to a specified limit.
- The method must return an array containing all multiples of
numberthat are less than or equal tolimit. - If
numberis zero or greater thanlimit, the method must return an empty array. - The array must contain the multiples in ascending order, starting from
numberup to the largest multiple not exceedinglimit.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single