Wap to swap the three digit number, C/C++ Programming

WAP TO SWAP THE THREE DIGIT NUMBER

void main ()

{

int b,r,n,r1,r2;

clrscr ();

printf ("Enter the Value: ");

scanf ("%d",&n);

r=n%10;

n=n/10;

r1=n%10;

n=n/10;

r2=n%10;

n=n/10;

b=(r*100)*(r2*10)+(r2);

printf ("%d%d%d",r,r1,r2);

getch ();

}

 

Posted Date: 9/10/2012 9:12:06 AM | Location : United States







Related Discussions:- Wap to swap the three digit number, Assignment Help, Ask Question on Wap to swap the three digit number, Get Answer, Expert's Help, Wap to swap the three digit number Discussions

Write discussion on Wap to swap the three digit number
Your posts are moderated
Related Questions
What is copy constructor? describe the concept of copy constructor.

In this Lab you will code 8086 assembler equivalents (Virgo) for common C control flow instructions. This will give you an appreciation for how control flow is implemented in assem


a c program to find the volume of sphere


Write a program that predicts users age: Write a program that predicts users' age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/s

(a) Pairs may be represented using a lambda. Using only lambdas, create a procedure (triple x y z) that constructs a triplet. You may NOT use car, cons or cdr in the triplet proced

- But with less features and more user-friendly (particularly for non-tech savvy users). - Software needed having a left menu with links (no pictures required) for every hardwar

solve mesh and nodal analysis through c/c++?

I need to make a fractal trees in OpenGL C++ . The method used is to write a recursive function with cylinders of different sizes and angles to create the tree trunk and branches.