A village wants to buy a cylindrical water tank and paint its wall. From the radius and the height in metres, WaterTank prints the base area, the volume, the capacity in litres (1 m³ = 1000 litres) and the area of the curved wall.
baseArea ← radius × radius × π volume ← baseArea × height
litres ← volume × 1000 wall ← 2 × π × radius × height
Use 3.14159 for π. For the input
1.5 2
the program prints
Base area: 7.07 m2
Volume: 14.14 m3
Capacity: 14137 litres
Wall to paint: 18.85 m2