Untitled
#include <stdio.h> int main() { int n,m,remainder,reversed=0; scanf("%d",&n); m=n; while (n>0) { remainder=n%10; reversed=reversed*10+remainder; n/=10; } //printf("\n"); printf("%d\n",reversed); return 0; }
#include <stdio.h> int main() { int n,m,remainder,reversed=0; scanf("%d",&n); m=n; while (n>0) { remainder=n%10; reversed=reversed*10+remainder; n/=10; } //printf("\n"); printf("%d\n",reversed); return 0; }