Write a program using a loop to print the following output.
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 . . . nth iteration.
Answers
Answered by
0
Answer:
var numbers = [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6]
for(i = 0, i < numbers.length, i ++ 1){
console.log(i(numbers))
}
Explanation:
Similar questions