Question #271771

Write a function called print volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.


Expert's answer

def printVolume(r):
    pi=3.142
    volume=(4/3)*pi*r*r*r;
    print("The volume of the sphere is : ",volume)


printVolume(7)
LATEST TUTORIALS
APPROVED BY CLIENTS