#include <iostream> using namespace std; int main() { int number; cin>>number; if(number!=0) while(number>0){ int a; a=number%10; cout<<a; number/=10; } else cout<<"0"; } // 64 位输出请用 printf("%lld")