fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cout << "Erste Zahl a: ";
  7. cin >> a;
  8. cout << a << endl;
  9.  
  10. cout << "Zweite Zahl b: ";
  11. cin >> b;
  12. cout << b << endl;
  13.  
  14. c = a;
  15. cout << "Zwischenvariable c: " << endl;
  16.  
  17. a = b ;
  18. cout << "neu a; " << a << endl;
  19.  
  20. b = c;
  21. cout << "neu b: " << b << endl;
  22.  
  23.  
  24.  
  25. // your code goes here
  26. return 0;
  27. }
Success #stdin #stdout 0s 3464KB
stdin
Erste Zahl a: 2
Zweite Zahl b: 4
Zwischenvariable c: 2
neu a: 4
neu b:2
stdout
Erste Zahl a: 0
Zweite Zahl b: 134514978
Zwischenvariable c: 
neu a; 134514978
neu b: 0