Write a program to print the swapping in two no and using
three variable.

Answer Posted / anshuman jha

#include<iostream.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

cout<<"Enter the two different no :";

cin>>a>>b;

cout<<"After swapping :"<<a<<b;

c=a;

a=b;

b=c;

cout<<"Before swapping :"<<a<<b;

getch();

}

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

1867


What are the symptoms of stl?

700


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1997


What is the stl, standard template library?

678


how to making game in c++ ?

2290






write a program to convert a decimal number in to its equivalent binary number?

2165


Is stl part of c++ standard?

726


What are the different types of stl containers?

746


how to use C++?

2157


totoo po ba ang manga aliens!

2423


How does an stl file work?

748


what is template and type convertion

2094


Name the different types of stl containers.

791


What is a list in c++ stl?

784


Explain stl.

984