fb pixel

Cylinder volume

A cylinder has a height h and a radius r. Your task is to calculate the volume of that cylinder.
As a reminder, the volume of the cylinder is calculated by multiplying the area of the base circle by the height:
notion image
The first 2 lines of the input represent the h and the r of the cylinder.
Print its volume in the output.
15 6
You might want to set the value of to something very precise like 3.14159265359.
To check your solution you need to sign in
Sign in to continue