#include<stdio.h> int main() { long long n,temp,rem,sum=0; scanf("%lld",&n); temp=n; while(temp!=0) { rem=temp%10; sum=sum*10+rem; temp=temp/10; } printf("%lld\n",sum); return 0; }
No comments