MaxxxxiorS

Na czwórkę 10.03.2021

Mar 10th, 2021
959
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int kasztan;
  8.    
  9.     cout << "Wybierz 1 albo 2(tylko): ";
  10.     cin >> kasztan;
  11.    
  12.     if (kasztan == 1){
  13.         for (int x = 0; x < 5; x++){
  14.             cout << "Maksymilian" << endl;
  15.         }
  16.     } else if (kasztan == 2){
  17.         for (int z = 0; z < 5; z++){
  18.             cout << "Podlecki" << endl;
  19.         }
  20.     } else if (kasztan != 1 && kasztan != 2 || kasztan == 0 || kasztan > 2){
  21.         cout << "CO TY ROBISZ!!!!!!!!!!" << endl;
  22.     }
  23.    
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment