(2 marks)
2 of 3
Paper No: 1
The given file Q1.c already contains statements to enter the radius named r and height named h of the cylinder. You will write the statements to print the volume of the cylinder (V) according to the following expression:Sbottom = π*r² (with π is 3.14)
V = Sbottom * h
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
- The output value is formatted in two decimal places
Sample input and output:
Input: r = 4, h = 9
Close
+ 100%
Zoom