Python Program to Compute Volume and Surface Area of Sphere
Write Python Program to Compute Volume and Surface Area of Sphere
# Python Program to Compute Volume and Surface Area of Sphere PI = 3.14 radius = 4 #Formula to compute area of sphere area_sphere = 4 * PI * (radius * radius) #Formula to compute volume of sphere volume = (4 * PI * radius * radius * radius)/3 print("Surface area of Sphere having radius ", radius, " :--> ", area_sphere) print("Volume of Sphere having radius ", radius, " :--> ", volume)
Output:
Surface area of Sphere having radius 4 :--> 200.96
Volume of Sphere having radius 4 :--> 267.94666666666666