fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6. int x,y;
  7. cin>>x>>y;
  8. swap(x, y);
  9. return 0;
  10. }
  11. void swap(int x,int y){
  12. int temp;
  13. temp = x;
  14. x = y;
  15. y = temp;
  16. cout<<x<<y;
  17. }
Success #stdin #stdout 0s 5568KB
stdin
3 4
stdout
Standard output is empty