Advertisement
MaxxxxiorS

Na dwójkę 10.03.2021

Mar 10th, 2021
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int siemanko;
  8.    
  9.     cout << "Wybierz 1 albo 2(tylko): ";
  10.     cin >> siemanko;
  11.     if (siemanko == 1){
  12.         cout << "Witaj!";
  13.        
  14.     } else if (siemanko == 2){
  15.         cout << "Żegnaj!";
  16.        
  17.     } else if (siemanko == 3 || siemanko == 0){
  18.         cout << "Miało być 1 albo 2 ciołku!";
  19.     }
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement