Connect with a knowledgeable community and get your questions answered on IDNLearn.com. Ask anything and receive comprehensive, well-informed responses from our dedicated team of experts.
A program that takes the radius of a sphere (a floating-point number) as input and then outputs the parameter of the spheres is given below:
from math import pi
r = radius
radius = int(input("Radius = "))
print (float("Diameter : " + int(input(float(2 * radius))))
radius = int(input("Radius = "))
diameter = <...calculate diameter...>
print('Diameter =', diameter)
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1