Print Even Indices Problem
Print Even Indices Problem — ExecCode School DSA Practice
Solve the Print Even Indices problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers. Your task is to solve Print Even Indices. Print the values that sit at even index positions (0, 2, 4, and so on).
Examples
Input 5 1 2 3 4 5; Output 1 3 5. Input 4 10 20 30 40; Output 10 30
Constraints
1 <= N <= 1000
Practice Print Even Indices free on ExecCode. Browse DSA problems, topic map, and placement guides.