C programing

Reverse Number By Using C

#include<stdio.h> #include<conio.h> void main () { int num,rev=0,rem; clrscr(); printf(“Enter the Number=”); scanf(“%d”,&num); while(num!=0) { rem=num%10; rev=rev*10+rem; num=num/10; } if(num==0) printf( ” Reverse Number is=%d”,rev); getch(); } After Running Program 🙂