write a Python program to obtain radius of the sphere and calculate its volume
Answers
Answered by
2
Answer:
Combine the whole program:
#impotr math package to use math.pi for the value of PI.
import math.
#take radius of the sphere from user.
r=float(input("Enter the r of a sphere"))
#calculate the surface area of sphere.
s_area=4*math.pi*pow(r,2)
#calculate the volume of sphere.
volume=(4/3)*math.pi*pow(r,3)
Answered by
0
Answer:
she was so much for your support of the year happy birthday is the best way to get a room with a room with a room with a room with a
Similar questions