Advertisement
Josif_tepe

Untitled

Feb 9th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin>>n;
  9.     int m;
  10.     int d,k,l;
  11.     d=0;
  12.     k=0;
  13.     l=0;
  14.     for(int i=1; i<=n; i++)
  15.     {
  16.         if(n<=24)
  17.         {
  18.             d++;
  19.         }else
  20.         {
  21.             if(n<=54)
  22.             {
  23.                k++;
  24.             }else
  25.             {
  26.                 l++;
  27.             }
  28.         }
  29.     }
  30.     if(n<=24)
  31.     {
  32.         cout<<d+7<<". mart"<<endl;
  33.     }else
  34.     {
  35.             if(n<=54)
  36.             {
  37.                cout<<(k+7)-31<<". april"<<endl;
  38.             }else
  39.             {
  40.                 cout<<(l+7)-61<<". maj"<<endl;
  41.             }
  42.     }
  43.     return 0;
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement