Volume of Sphere || Surface Area || Geometric Program || Python

In this we are going to see a basic program to calculate volume and surface area of sphere in Python Programming Language.


PI = 3.14
radius = float(input('Please Enter the Radius of a Sphere: '))
Surface_Area = 4 * PI * radius * radius
Volume = (4 / 3) * PI * radius * radius * radius
print("\n The Surface Area of a Sphere = %.2f sq units" %Surface_Area)
print("\n The Volume of a Sphere = %.2f sq units" %Volume)

#Code by Shrinivas


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post