Python Program to calculate the Surface Area of Sphere

#Surface Area = 4 * PI * R * R 

pi=3.1428
r=float(input("Enter the Radius of Sphere:"))
area=4*pi*r*r

print("The Surface Area of sphere will be",area)



Output
>>>
Enter the Radius of Sphere:7.5
The Surface Area of sphere will be 707.1299999999999
>>>

No comments

Post your comments

Powered by Blogger.