#include<stdio.h>
int main(){
int n;
while(scanf("%d",&n)!= EOF){
if(n == 0){
printf("0\n");
continue;
}
while(n%10 == 0){
n=n/10;
}
while(n > 0){
printf("%d",n%10);
n = n/10;
}
printf("\n");
}
return 0;
}
#include
int main(){
int n;
while(scanf("%d",&n)!= EOF){
if(n == 0){
printf("0\n");
continue;
}
while(n%10 == 0){
n=n/10;
}
while(n > 0){
printf("%d",n%10);
n = n/10;
}
printf("\n");
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv){
ios::sync_with_stdio(false);
cin.tie(0);
int a,b;
while(cin>>a){
b=0;
while(a!=0){
b=b*10+a%10;
a/=10;
}
cout<<b<<'\n';
}
}
這樣.....