Quick actions

cmd+k|ctrl+k

Navigation

Languages

Work 2

Snippet info

Language

Cpp

Visibility

public

Author

zvat.333333

Created

2018-09-29T12:33:38Z

Updated

2018-09-29T12:41:10Z

#include <iostream>
using namespace std;
int M;

int main() {
    cout << ".........";
    cin >> M;
    
    if (0 < M < 13)
    {
            if (M == 1 or M == 2 or M == 3)
            {
                cout << "\nWinter";
            }
            else 
            {
                if (M== 3 or M== 4 or M == 5)
                cout << "\nSpring";
                
                else
                {
                    if (M == 6 or M==7 or M==8)
                    cout << "\nSummer";
                    
                        else 
                        {
                            if (M == 9 or M==10 or M==11)
                            {cout << "\nAutumn";
                            }
                            else
                            {
                                cout << "\nErorr";
                            }
                        }
                }
                
            }
    }  
    else 
    cout << "\nErorr";
    return 0;
}
INFO