Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  reverse any number
Language: C/C++
Code:
#include <stdio.h>
int main()
{
int num,r,reverse=0;
printf("enter any number");
scanf("%d",&num);
while(num)
{
r=num%10;
reverse=reverse*10+r;
num=num/10;
}
printf("reversed of number:%d",reverse);
return 0;
}
          
          
Comments: