yusufbrima

Seasons

Sep 29th, 2020
933
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data