Write a python program to calculate area and the volume of sphere .
PI = 3.14159
R = float(input("Enter Radius :"))
Area_of_sphere = 4 * PI * R*R
Volume_of_sphere = (4/3) * PI * R *R *R
print("Area of sphere",Area_of_sphere)
print("Volume of sphere",Volume_of_sphere)
"""
output:
Enter Radius :5
Area of sphere 314.159
Volume of sphere 523.5983333333332
"""
Comments
Post a Comment