Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
241 B
10
Indexable
Never
///123

#include <stdio.h>
int main()
{
    int n,rem,sum=0,rev=0;
    scanf("%d",&n);
    while (n)
    {
      rem=n%10;
      rev=rev*10+rem;
      n/=10;
    }
    printf("reverse= %d\n",rev);
    
    
    return 0;
}