SHARE
TWEET

Untitled

a guest May 22nd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int loop_counter = 0;
  2. int anzahl_kugeln = 0;
  3.  
  4. while(loop_counter != 3) {
  5.  
  6.     if(anzahl_kugeln <= 3) {
  7.  
  8.         //Amount of ice cream balls input
  9.         cin >> anzahl_kugeln;
  10.  
  11.         //Check if entry has more than 3
  12.         if(anzahl_kugeln > 3) {
  13.             cout << "Fuck off du faggot, nur 3 erlaubt" << endl;
  14.         }
  15.  
  16.         cout << "Alles klar! " << anzahl_kugeln << " mal " << endl;
  17.  
  18.     }
  19.  
  20.     else {
  21.         cout << "3 Kugeln erreicht" << endl;
  22.         break;
  23.     }
  24. }
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
 
Top