Subprograms. Procedure




Task
C++
1
#include<iostream> 
2
using namespace std; 
3
4
5
6
7
8
main() 
9
{ 
10
  int x = 1, y = 2; 
11
  Swap ( x, y );          
12
  cout << "x = " << x << ", y = " << y;       
13
}       
Your last submission is saved in the editor window.
     

Results:

All results: