Write a program that reads a list of integer numbers separated by spaces from the standard input and then removes all numbers with even indexes (0, 2, 4, and so on).
After that, the program should output the resulting sequence in reverse order.
Write a program that reads a list of integer numbers separated by spaces from the standard input and then removes all numbers with even indexes (0, 2, 4, and so on).
After that, the program should output the resulting sequence in reverse order.
Sample Input 1:
1 2 3 4 5 6 7Sample Output 1:
6 4 2Sample Input 2:
1 2Sample Output 2:
2Sample Input 3:
7 6 -5 -4 -3 2 1Sample Output 3:
2 -4 6Create a free account to access the full topic