Arithmetic expressions




Task
Given two variables are entered from the keyboard. It is necessary to interchange the values of these variables: in the variable a, what was previously stored in b should be written, and in the variable b, what was previously stored in a should be written. Then these variables are deduced, first the variable a, then b
Complete the program with the necessary operators.
C++
1
#include<iostream>   
2
using namespace std;    
3
main(){       
4
	int a,b;   
5
	cin>>a>>b;   
6
7
8
9
    cout<<a<<" "<<b;   
10
}       
Your last submission is saved in the editor window.
     

Results:

All results: