#include<stdio.h>
main(){
int m, n, f;
n = 0;
printf("enter any number");
scanf("%d", &m);
while (m != 0)
{
n =n*10+ m % 10;
m = m / 10;
}
printf("reverse no is %d",n);
}
main(){
int m, n, f;
n = 0;
printf("enter any number");
scanf("%d", &m);
while (m != 0)
{
n =n*10+ m % 10;
m = m / 10;
}
printf("reverse no is %d",n);
}
0 Comments