-->
当前位置:首页 > 题库

PROGRAMMING:Fish's number game

Luz5年前 (2021-05-10)题库389
Xiaoyu was recently asked to take part in a number game, asking him to make a list of numbers he saw $$a_{ i} $$(length is not necessarily, ending with 0, where $$0 / Le a_{ i} (the number of numbers is no more than 100), remember it, and then read it backwards (don't read the ending number 0). This is too difficult for the little fish's memory. You don't think how big the whole head of the little fish is, and part of it is delicious meat! So please help Xiaoyu program to solve this problem.
###Input format:
Enter a string of integers in a line, ending with 0 and spaced with spaces.
###Output format:
Output this string of integers in a row, separated by spaces.
###Input example:
```in
3 65 23 5 34 1 30 0
```
###Output example:
```out
30 1 34 5 23 65 3
```







answer:If there is no answer, please comment