josiftepe

Untitled

Oct 25th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int broj;
  8.     cin >> broj;
  9.  
  10.     if (broj==1){
  11.         cout<<31;
  12.     }
  13.  
  14.     if (broj==2){
  15.         cout<<28;
  16.     }
  17.  
  18.     if (broj==3){
  19.         cout<<31;
  20.     }
  21.  
  22.     if (broj==4){
  23.         cout<<30;
  24.     }
  25.  
  26.     if (broj==5){
  27.         cout<<31;
  28.     }
  29.  
  30.     if (broj==6){
  31.         cout<<30;
  32.     }
  33.  
  34.     if (broj==7){
  35.         cout<<31;
  36.     }
  37.  
  38.     if (broj==8){
  39.         cout<<31;
  40.     }
  41.  
  42.     if (broj==9){
  43.         cout<<30;
  44.     }
  45.  
  46.     if (broj==10){
  47.         cout<<31;
  48.     }
  49.  
  50.     if (broj==11){
  51.         cout<<30;
  52.     }
  53.  
  54.     if (broj==12){
  55.         cout<<31;
  56.     }
  57.     return 0;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment