#include< stdio.h >
#include< conio.h >
void main ()
{
int n , d1, d2;
clrscr();
printf(" Enter a number : ");
scanf("%d",&n);
d1=n%10 ;
n=n/10 ;
d2=n%10 ;
printf("Reversed no is %d%d",d1,d2);
getch();
}
OUTPUT :
Enter a number :25
Reversed no is 52
#include< conio.h >
void main ()
{
int n , d1, d2;
clrscr();
printf(" Enter a number : ");
scanf("%d",&n);
d1=n%10 ;
n=n/10 ;
d2=n%10 ;
printf("Reversed no is %d%d",d1,d2);
getch();
}
OUTPUT :
Enter a number :25
Reversed no is 52
No comments :
Post a Comment