Your task is to write a program that reads a sequence of words ending with a dot and prints, in reverse order, those that are in odd positions.
The input is a sequence of words ending with a dot, one per line.
Your program must print the words which are in odd positions in reverse order, one per line.
Vectors are not allowed in this exercise.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:13:56.384Z
© Jutge.org, 2006–2026.
https://jutge.org