Untitled

 avatar
user_0563559
c_cpp
a year ago
475 B
4
Indexable
Never
#include <iostream>
using namespace std;

int main()
{

    int a;
    cin >> a;

    if (a >= 1 && a <= 12) 
        if (a >= 3 && a <= 5) 
            cout << "Spring";
        
        else if (a >= 6 && a <= 8) 
            cout << "Summer";
        
        else if (a >= 9 && a <= 11) 
            cout << "Autumn";
        
        else 
            cout << "Winter";
    
        else 
            cout << "Error";
    

    return 0;


}