Reverse of a number using while Loop

/* Write a program to find the Reverse of a number using while Loop */

void main()
long rev=0,num,rem,n;
printf("\n Enter the number to Reverse");
num = n ;
while(num != 0)
rem = num % 10 ;
num = num / 10 ;
rev = rev * 10 + rem ;
printf("\n The Entered Number is = %ld",n);
printf("\n The Reverse Number is = %ld",rev);


Who's online

We have 4 guests and no members online

About Us

Harsimran Singh


This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(

Harsimran Singh(G+)