Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
289 B
1
Indexable
Never
#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;
}