#include<bits/stdc++.h> using namespace std; int n,a[10005]; int main(){ while(cin>>a[++n]&&a[n]!=0); while(n--){ if(a[n]==0){ break; } cout<<a[n]<<" "; } return 0; }

0 comments

No comments so far...