#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
while(a%10==0)
a=a/10;
while(a>0){
b=a%10;
cout<<b;
a=a/10;
}
cout<<endl;
return 0;
}
1031 数据逆序显示
最新推荐文章于 2022-11-08 17:31:11 发布
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
while(a%10==0)
a=a/10;
while(a>0){
b=a%10;
cout<<b;
a=a/10;
}
cout<<endl;
return 0;
}