CBSE Class 11 Computer Science Question 37 of 40

Data Handling — Question 20

Back to all questions
20
Question

Question 20

Find the volume of the cylinder (πr2h) as shown:

Radius = 8 cm
Height = 15 cm

Solution
import math

r = 8
h = 15
v = math.pi * r * r * h

print("Volume of Cylinder =", v)
Output
Volume of Cylinder = 3015.928947446201
Answer

import
math
r
=
8
h
=
15
v
=
math
.
pi
*
r
*
r
*
h
print
(
"Volume of Cylinder ="
,
v
)
Output
Volume of Cylinder = 3015.928947446201