Solve problem "Reverse the sequence" online - Learn Python 3 - Snakify

Problem «Reverse the sequence» (Hard)


Statement

Given a sequence of integers that end with a \( 0 \). Print the sequence in reverse order.

Don't use lists or other data structures. Use the force of recursion instead.


In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
1
2
3
0
0
3
2
1
8
7
2
3
1
4
5
0
0
5
4
1
3
2
7
8
1
0
0
1
0
0
1
2
3
4
5
6
7
8
9
0
0
9
8
7
6
5
4
3
2
1