SHARE
TWEET

Untitled

a guest Nov 8th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int v1 = 0, v2 = 0, v_temp = 0;
  7.     cout << "Bitte geben Sie den ganzzahligen Wert der ersten Variable ein : ? ";
  8.     cin >> v1;
  9.     cout << "Bitte geben Sie den ganzzahligen Wert der zweiten Variable ein : ? ";
  10.     cin >> v2;
  11.  
  12.     v_temp = v1;
  13.     v1 = v2;
  14.     v2 = v_temp;
  15.    
  16.  
  17.     cout << "Nach dem Tausch: " << endl;
  18.     cout << "Wert der ersten Variable: " << v1 << endl;
  19.     cout << "Wert der zweiten Variable: " << v2 << endl;
  20.  
  21.  
  22.     system("PAUSE");
  23.  
  24.     return 0;
  25.  
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top