//Enter Numbers and interchange their values with third variable....
#include <iostream>
using namespace std;
int main ()
{
int n1,n2,exchanger;
cout << "Enter first number:" <<endl;
cin >> n1;
cout << "Enter second number;" <<endl;
cin >> n2;
exchanger=n1;
n1=n2;
n2=exchanger;
cout << "Value of first number after Exchanging = "<< n1 <<endl;
cout << "Value of second number after exchanging = "<< n2 <<endl;
return 0;
}
No comments:
Post a Comment