MaxxxxiorS

Na trójkę 10.03.2021

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