O-Level - Worksheet 1
O-Level - Worksheet 1
1. Write a program to take as input the length and width of a rectangular garden. The
program is to calculate and output the surface area.
Page 1 of 2
3. Write a program to take as input air temperature in degrees Celsius. The program is to
output a message to say whether it is freezing (below 1 degree) or not.
4. Write a program to take as input an integer between 1 and 12 (inclusive). The program
is to output the name of the month corresponding to the number input. For example, an
input of 2 will output ‘February’.
Page 2 of 2