Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int n;
  9.  
  10.     cin>>n;
  11.     if (n<=12) {
  12.         if ((n>=1 && n<=2) || n==12) cout<<"Winter";
  13.         if (n>=3 && n<=5) cout<<"Spring";
  14.         if (n>=6 && n<=8) cout<<"Summer";
  15.         if (n>=9 && n<=11) cout<<"Autumn";
  16.     } else cout<<"Error";
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement