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

write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2499


What is the stl, standard template library?

592


What do stl stand for?

639


How do you convert stl to steps?

628


Who created stl?

647






totoo po ba ang manga aliens!

2333


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1698


What are the various types of stl containers?

727


Who wrote stl?

672


how to making game in c++ ?

2178


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2091


Can we use stl in coding interviews?

1276


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1853


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1970


how to use C++?

2063