Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- if (n<=12) {
- if ((n>=1 && n<=2) || n==12) cout<<"Winter";
- if (n>=3 && n<=5) cout<<"Spring";
- if (n>=6 && n<=8) cout<<"Summer";
- if (n>=9 && n<=11) cout<<"Autumn";
- } else cout<<"Error";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement