Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- int m;
- int d,k,l;
- d=0;
- k=0;
- l=0;
- for(int i=1; i<=n; i++)
- {
- if(n<=24)
- {
- d++;
- }else
- {
- if(n<=54)
- {
- k++;
- }else
- {
- l++;
- }
- }
- }
- if(n<=24)
- {
- cout<<d+7<<". mart"<<endl;
- }else
- {
- if(n<=54)
- {
- cout<<(k+7)-31<<". april"<<endl;
- }else
- {
- cout<<(l+7)-61<<". maj"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement