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
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
What is the stl, standard template library?
What do stl stand for?
How do you convert stl to steps?
Who created stl?
totoo po ba ang manga aliens!
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
What are the various types of stl containers?
Who wrote stl?
how to making game in c++ ?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Can we use stl in coding interviews?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
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.
how to use C++?