- 龙凤苑中学C班4.30
小鱼的数字游戏
- @ 2024-5-17 17:34:55
#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...
#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; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.