//Mirror Image Of Number
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num,r,sum;
cout<<"Enter Number";
cin>>num;
while(num!=0)
{
r=num%10;
cout<<r;
num=num/10;
}
getch();
}
Output:
Enter Number 12345
54321
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num,r,sum;
cout<<"Enter Number";
cin>>num;
while(num!=0)
{
r=num%10;
cout<<r;
num=num/10;
}
getch();
}
Output:
Enter Number 12345
54321
0 comments:
Post a Comment