- 龙凤苑中学B班5.30
小鱼的数字游戏
- @ 2024-5-30 17:40:58
#include <bits/stdc++.h>
using namespace std;
int a[10000000],s,d=0;
int main() {
for(int i=0;;i++){
cin>>s;
if(s==0) break;
else{
a[i]=s;
d++;
}
}
for(int i=d-1;i>=0;i--){
cout<<a[i]<<" ";
}
return 0;
}
0 comments
No comments so far...