avatar
Untitled

Guest 9 4th Nov, 2019

MARKUP 0.97 KB
                                           
                         #include<iostream>
#include<cmath>
using namespace std;
int main(){
int d,m;
cin>>d>>m;

if (m==3){
    if (d>=21){
        cout<<"wiosna";
    }
    if (d<=20){
        cout<<"zima";
    }
}
if (m==4 || m==5){
    cout<<"wiosna";
}
if (m==6){
    if (d>=21){
        cout<<"lato";
    }
    if (d<=20){
        cout<<"wiosna";
    }
}
if (m==7 || m==8){
    cout<<"lato";
}
if (m==9){
    if (d>=21){
        cout<<"jesien";
    }
    if (d<=20){
        cout<<"lato";
    }
}
if (m==10 || m==11){
    cout<<"jesien";
}
if (m==12){
    if (d>=21){
        cout<<"zima";
    }
    if (d<=20){
        cout<<"jesien";
    }
}
if (m==1 ||m==2){
    cout<<"zima";
}





}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data