Solution:-
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int number1,number2,temp;
cout<<"Enter Number 1 = ";
cin>>number1;
cout<<"Enter Number 2 = ";
cin>>number2;
temp=number1;
number1=number2;
number2=temp;
cout<<"After Swaping Number 1 = "<<number1;
cout<<"\nAfter Swaping Number 2 = "<<number2;
getch();
}
0 Questions:
Post a Comment