Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int loop_counter = 0;
- int anzahl_kugeln = 0;
- while(loop_counter != 3) {
- if(anzahl_kugeln <= 3) {
- //Amount of ice cream balls input
- cin >> anzahl_kugeln;
- //Check if entry has more than 3
- if(anzahl_kugeln > 3) {
- cout << "Fuck off du faggot, nur 3 erlaubt" << endl;
- }
- cout << "Alles klar! " << anzahl_kugeln << " mal " << endl;
- }
- else {
- cout << "3 Kugeln erreicht" << endl;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement