get the output as reverse of the number entered.
Program
#include<stdio.h>
#include<conio.h>
void main()
{
int
n, rem, rev =0;
printf("Enter
the number:");
scanf("%d",&n);
printf("Reverse of the number entered = ");
while
(n>0)
{
rem=n%10;
printf("%d",rem);
n=n/10;
}
}
Post a Comment