c program to reverse a number using for loop,c program to reverse a number with explanation,c program to reverse a number using recursion,c program to reverse a number and check for palindrome,c program to reverse a number using function,c program to reverse a number using while loop,c program to reverse a number using bitwise operator,c program to reverse a number using stack,
#include"stdio.h"
#include"conio.h"
void main()
{
long no,rem,sum=0;
clrscr();
printf("Enter the number=");
scanf("%ld",&no);
while(no>0)
{
rem=no%10;
sum=(sum*10)+rem;
no=no/10;
}
printf("\n\n The Reverse number is=%ld",sum);
getch();
}