C++ Program to Swap Two Numbers
To swap two numbers we will use another temporary variable to store the value of first number.
//C++ Program to swap two numbers"
using namespace std;
int a, b, c;
cout<<"Enter first number: ";
cout<<"Enter second number: ";
cout<<"Swapping of the numbers are= "<<a <<" "<< b;
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.