Problem A: 逆序输出10个数字

Problem A: 逆序输出10个数字

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1470  Solved: 687
[Submit] [Status] [Web Board] [Creator:]

Description

输入10个数字,然后逆序输出。

读入10个数字的代码如下:

int a[10];
int i;
for (i=0; i<10; i++)
scanf("%d", &a[i]);

Input

十个整数

Output

逆序输出,空格分开。

需要注意的是最后一个数字后面是没有空格的,如果你在最好一个数字后面输出了空格,会导致”格式错误“

Sample Input

1 2 3 4 15 6 17 8 9 0

Sample Output

0 9 8 17 6 15 4 3 2 1