Answer:
// program in Python.
#library
import math
#read the radius of sphere
rad=float(input("Enter the radius of sphere:"))
# find the Surface area
A=4*math.pi*rad**2
V=(4/3)*math.pi*rad**3
#print the Surface area
print("The surface area of the sphere is:",A)
#print the Volume of sphere
print("The volume of the sphere is:",V)
Step-by-step explanation:
Import math library to use the value of "pi".Read the radius of sphere from user and assign it to variable "rad".Then calculate the surface area A = 4*3.14r**2 and volume of sphere V=V = 4/3 x 3.14r**3.Print the surface area and volume of the sphere.
Output:
Enter the radius of sphere:2.5
Surface area is: 78.539812
Volume of sphere is: 65.44985