Sunday, 27 November 2011

C++ Program For Print Reverce Number


#include<iostream.h>
#include<conio.h>
void main()
 {
   clrscr();
   int a,b,c=0;
   cout<<"Enter Any number";
   cin>>a;
   do{
       b=a % 10;
  a=1 % 10;
  c=c * 10 + b;
}while(a!=0)
    cout<<"Reverse Number is ="<<c;
   getch();
 }

No comments:

Post a Comment