devadharsansajeev514
devadharsansajeev514 devadharsansajeev514
  • 25-09-2021
  • Computers and Technology
contestada

Define a class Sphere to input radius of a sphere and compute the volume of it. Volume = πr3 (where π=3.14)​

Respuesta :

Аноним Аноним
  • 25-09-2021

Lets use Python

Program:-

[tex]\tt r=(float(input("Enter\:the\:radius\:of\:Sphere=")))[/tex]

[tex]\tt V=4/3*3.14*r**3[/tex]

[tex]\tt print("Volume\:of\:the\:sphere=",V)[/tex]

Output:-

[tex]\tt Enter\:the\:radius\:of\:the\:sphere=3[/tex]

[tex]\t Volume\:of\:the\:Sphere=103.4[/tex]

Answer Link

Otras preguntas

⚠️‼️⚠️ HELPPP PLEASE WILL GIVE POINTS ‼️⚠️⚠️​
the passive voice Paris is very beautiful city​
A writer wants to make the following claim: Summer holidays should be restored to times when families took off work and school together. Which answer makes the
Donald writes 6 x 9 = 54. Explain two strategies you could use to check his work.​
please answer it correctly
Who is in beaconhouse Lahore?​
please help! what is the slope of a line that is parallel to y= 3x+5?
I am stuck on a problem on my course, can someone help me with this please, thank you! :) Put the following equation of a line into slope-intercept form, simpli
Merle has found that the probability of randomly drawing a bag of green tea out of a box of assorted tea bags is . If Merle draws 25 tea bags out of the box, wh
Socrates lived in Athens in the second half of the 5th century. As a young man he is believed to (study/have studied/be studying/have) been studying natural phi