CJCoding With Joseph
15free / daySign inCreate account

Print Each Array Element

Arrays let you store many values in one variable and reach each one by its position (its index). In this exercise a fixed array of four integers is already declared for you. Write a loop that walks through the array from the first index to the last and prints each number on its own line. This is the most basic array skill: visiting every element in order with a for loop.

Expected Output:

3
6
9
12

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Arrays
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.