Python program to find volume of sphere

0
45
r=float(input("Enter radius of sphere "))
pi=3.142
v=4.0/3*pi*pow(r,3);       #pow() math function used for r to the power of 3
print("\n volume of sphere with radius is ",v)

    Output:
    Enter radius of sphere 7.4

     volume of sphere with radius is  1697.6184106666667

 

 

 

Python program to find volume of sphere Write a program to find volume of sphere Write a program to find volume of sphere in python volume of sphere program in python find the volume of sphere find the volume of sphere program in python

LEAVE A REPLY

Please enter your comment!
Please enter your name here