Challenge: Generate Multiples
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me a real-world example?
Incrível!
Completion taxa melhorada para 8.33
Challenge: Generate Multiples
Deslize para mostrar o menu
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2
single