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 } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 3
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Pergunte-me perguntas sobre este assunto
Resumir este capítulo
Mostrar exemplos do mundo real
Awesome!
Completion rate improved to 2.86
Challenge: Fill an Array
Deslize para mostrar o menu
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 } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 3