Reversing a list of words (1)

Write a program that reads a sequence of words and prints it in reverse
order.

Input

Input consists of a sequence of words.

Output

Print the words of the original sequence, in reverse order, and one per
line.

Observation

For the sake of practice, use recursion (not arrays).

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:27:36.155Z

© Jutge.org, 2006–2026.
https://jutge.org
