begin write('Enter the number of the month: '); readln(month);
if (month < 1) or (month > 12) then writeln('Invalid month number') else if (month >= 3) and (month <= 5) then writeln('Spring') else if (month >= 6) and (month <= 8) then writeln('Summer') else if (month >= 9) and (month <= 11) then writeln('Autumn') else writeln('Winter'); readln;
program Seasons;
var
month: integer;
begin
if (month < 1) or (month > 12) thenwrite('Enter the number of the month: ');
readln(month);
writeln('Invalid month number')
else if (month >= 3) and (month <= 5) then
writeln('Spring')
else if (month >= 6) and (month <= 8) then
writeln('Summer')
else if (month >= 9) and (month <= 11) then
writeln('Autumn')
else
writeln('Winter');
readln;
end.