โ Back to Arrays
Question 386
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: 10 12 14
Expected Output:
10 12 14
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.