Given radius r and height h (in cm), calculate the mass of a cylinder when it's filled with water and the cylinder itself doesn't weigh anything. The desired output should be given in kg and rounded to two decimal places.
How to solve:
weight(4, 10) ➞ 0.5
weight(30, 60) ➞ 169.65
weight(15, 10) ➞ 7.07