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
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
C# Methods and Modular Thinking
close
Секція 2. Розділ 2
single

single

bookChallenge: Generate Multiples

Свайпніть щоб показати меню

Завдання

Swipe to start coding

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

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt