Challenge: Filling Array with Loop Counter
This lesson brings you a challenge to solve.
Problem statement
Write a loop that fills an array with the loop-counter (from 0 to 14), and then print that array to the screen.
Output
Array filled with values from 0 to 14
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] // filled array
Try to implement the function below. Good luck!
Access this course and 40+ top-rated courses and projects.