Ad Code

Write a program to reverse the given number.

Write a program to reverse the given number. 


#include<stdio.h>
#include<conio.h>
void main()
{
int n,r;
clrscr();
printf (“enter the number”);
scanf(“%d”,&n);
while(n!=0)
{
r=n%10;
printf(“%d”,r);
n =n/10;
}
getch();
}

Post a Comment

0 Comments

Ad Code