SCREENSHOTS
To Download The Files
------ClickHere------
CODING
Starts From Here--->>
#include<iostream.h>
#include<conio.h>
int reverse(int r1);
void main()
{ int n;
clrscr();
cout<<"Enter: ";
cin>>n;
cout<<"\nReverse of "<<n<<" is "<<reverse(n)<<".";
getch();
}
int reverse(int r1)
{ int d,n1=0;
while(r1>0)
{ d=r1%10;
n1=n1*10+d;
r1=r1/10;
}
return(n1);
}
<<-----End Here
No comments:
Post a Comment