标签:
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int a[100]; int main() { int x,i,r=0; while(~scanf("%d",&x)) { if(x==0) break; a[r++]=x; } if(a[0]!=0) { for(i=r-1;i>0;i--) printf("%d ",a[i]); printf("%d\n",a[0]); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4392305.html