Program
#include<iostream>
using namespace std;
int main()
{
int a = 105, b = 2;
int temp;
cout<<"Before swap "<<a<<" "<<b<<endl;
temp = a;
a = b;
b =temp;
cout<<"After swap "<<a<<" "<<b;
}
using namespace std;
int main()
{
int a = 105, b = 2;
int temp;
cout<<"Before swap "<<a<<" "<<b<<endl;
temp = a;
a = b;
b =temp;
cout<<"After swap "<<a<<" "<<b;
}
No comments:
Post a Comment