← Back to Arrays
Question 476
Print Elements at Even Indices
Print Elements at Even Indices
Given the array{10, 11, 12, 13, 14, 15}, print the elements at the even indices0, 2, 4, ...on one line separated by spaces (see Expected Output).
Expected Output:
10 12 14= newline. The output ends with a newline — print one after the last line.
Hints4 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 (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.