# include
# include
int main()
{
long int num,revnum=0,digit;
printf(“nntttEnter a Number :”);
scanf(“%ld”,#);
while(num>0)
{
digit = num%10;
revnum = revnum*10 + digit;
num = num/10;
}
printf(“nntttThe Reversed Number :%ld”,revnum);
return 0;
}
# include
int main()
{
long int num,revnum=0,digit;
printf(“nntttEnter a Number :”);
scanf(“%ld”,#);
while(num>0)
{
digit = num%10;
revnum = revnum*10 + digit;
num = num/10;
}
printf(“nntttThe Reversed Number :%ld”,revnum);
return 0;
}
If you have any query, then do leave us a comment.Thanks!!!