INTRODUCTION
INTRODUCTION
import math
a=8 R=8cm
b=15 H=15cm
c=math.pi*(a**2)*b
print("The radius of the cylinder is(in cm):",a)
print("The height of the cylinder is(in cm):",b)
print("Volume of the given cylinder is",c)
16. WAP to input the radius of a sphere and
calculate its volume.
import math
a=float(input("Enter the radius of the sphere:"))
V=4/3*math.pi*(a**3)
print("The Volume of the sphere is:",V)
f=(a**3)+(b**3)+3*((a**2)*b)+3*(a*(b**2))