MAD Programmer

Sunday, December 23, 2012

Write a program to find the reverse of an inputted number.

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
Posted by Unknown at 8:29 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C++

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Categories

  • C (1)
  • C++ (6)
  • Eclipse (2)
  • JAVA (2)

Search The Site

Popular Programs

  • Write a program for matrix addition, subtraction and multiplication.
  • Write a program to find the reverse of an inputted number.
  • Write a program to check whether the number is prime number or not.
  • What is Eclipse?
  • How to use the Eclipse IDE for the first time.
  • What is datatypes in C.(Brief)
  • Running a Java Program from Command Prompt
  • Write a program to find the factorial of a number.
  • Write a program to print the Fibonacci series.
  • What is Java technology and why do I need it?

About Me

Unknown
View my complete profile

List Of All Programs

  • ►  2013 (5)
    • ►  January (5)
  • ▼  2012 (6)
    • ▼  December (6)
      • Write a program for matrix addition, subtraction a...
      • Write a program to print the Fibonacci series.
      • Write a program to find the factorial of a number.
      • Write a program to find the sum of the digits of a...
      • Write a program to find the reverse of an inputted...
      • Write a program to check whether the number is pri...
Picture Window theme. Powered by Blogger.