Swapping of two number in C++ Language:-
Swapping of two number is the basic program in the c++ code in this tutorial I am tutore you to the detail code of Swapping of two number in C++ language;
#include<iostream>
using namespace std;
int main()
{
int a,b,temp;
cout<<"Enter two number"<<endl;
cin>>a>>b;
temp=a;
a=b;
b=temp;
cout<<"The swapped values a="<<a<<"and b="<<b;
}
To better understanding of concept and code watch the below video:-
ConversionConversion EmoticonEmoticon