Challenge: Fill an Array
Task
Your task is to create an array of integers of size 20
named testArray
and fill it with numbers from 1 to 20 inclusive using a for loop with the loop variable named i
to iterate over its indices in a concise way.
Main.java
12345678object Main { def main(args: Array[String]): Unit = { var ___ = new ___[___](___) // Declare an array variable for (___ ___ testArray.___) { ___(___) = ___ // Fill the array } } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 3
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.86
Challenge: Fill an Array
Свайпніть щоб показати меню
Task
Your task is to create an array of integers of size 20
named testArray
and fill it with numbers from 1 to 20 inclusive using a for loop with the loop variable named i
to iterate over its indices in a concise way.
Main.java
12345678object Main { def main(args: Array[String]): Unit = { var ___ = new ___[___](___) // Declare an array variable for (___ ___ testArray.___) { ___(___) = ___ // Fill the array } } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 3