Find reverse number in c program with using different method. User enter a normal number as a integer number (0,1,2,3,4,5,6,7,8,9,.....) , then show its reverse number. If user enter 2569, then its reverse number is 9652.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f,g;
clrscr();
printf("Enter two no=");
scanf("%d%d",&a,&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
g=a%b;
printf("\n Reverse of a number =%d",c);
getch();
}
0 Comments