Advertisement
yusufbrima

Seasons

Sep 29th, 2020
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1.  
  2. ALGORITHM: Season of the year
  3.    
  4. Variables: x integer
  5.  
  6. START:
  7.   Write("Enter the month number: ")
  8.   Read(x)
  9.   if( x >= 3 and x <= 5) then
  10.       Write("Spring")
  11.   elseif (x >= 6 and x<=8) then
  12.        Write("Summer")
  13.   elseif(x >= 9 and x <=  11) then
  14.        Write("Fall or Autumn")
  15.   else
  16.        Write("Winter")
  17.  
  18. END.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement