Wednesday, 24 July 2013

PROGRAM TO REVERSE THE ENTERED NUMBER

//PROGRAM TO REVERSE THE ENTERED NUMBER
/*MADE BY KRISHNA AGARWAL*/
#include<iostream>
using namespace std;
int main()
{
    int n,r;
    cout<<"enter the number\n";
    cin>>n;
    while(n>0)
    {
        r=n%10;
        cout<<r;
        n=n/10;
    }
    return 0;
}

No comments:

Post a Comment