fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int x,y;
  5. int main() {
  6.  
  7. x=10;
  8. y=20;
  9. cout<<"x= "<<x<<"\t"<<"y= "<<y<<endl;
  10.  
  11. int dep;
  12. dep=x;
  13. x=y;
  14. y=dep;
  15. cout<<"x= "<<x<<"\t"<<"y= "<<y<<endl;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
x= 10	y= 20
x= 20	y= 10