#include main() { int num,rev,rem; rev=0; clrscr(); printf("Enter the number: "); scanf("%d",&num); if (num>0) { while (num>0) { rem=num%10; rev=10*rev+rem; num=num/10; } printf("The reversed no is %d",rev); } getch(); }