Write a PYTHON program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s surface area.
The Surface Area of a Sphere is
Surface Area = 4πr²
Surface Area = 4 * PI * radius * radius
"""Program for finding the surface area"""
from math import pi
r = float (input (" Enter the radius of sphere: "))
SA = 4 *pi *r * r
print(" Surface Area of Sphere = ", SA ," unit square ")
----------------------------------------------------------------------------------------------
"""Program for finding the surface area by declaring the value """
pi = 3.14
//radius of sphere
radius = 6.34
SA = 4 * pi * radius *radius
print(" Surface Area of Sphere = ", SA ," unit square ")
Get Answers For Free
Most questions answered within 1 hours.