Computer Science
Write a program to calculate the radius of a sphere whose area (4πr2) is given.
Python
Python Data Handling
43 Likes
Answer
import math
area = float(input("Enter area of sphere: "))
r = math.sqrt(area / (4 * math.pi))
print("Radius of sphere =", r)
Output
Enter area of sphere: 380.14
Radius of sphere = 5.50005273006328
Answered By
25 Likes
Related Questions
Write a program to find a side of a right angled triangle whose two sides and an angle is given.
Write a program that inputs a string and then prints it equal to number of times its length, e.g.,
Enter string : "eka"
Result ekaekaekaWrite a program to generate 6 random numbers and then print their mean, median and mode.
Find the volume of the cylinder (πr2h) as shown:
Radius = 8 cm
Height = 15 cm