Print Each Array Element
easyQuestion 216Arrays 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, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
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.