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

Which permanent teeth are not succedaneous
How does the electric force between two charged particles change if particle's charge is reduced by a factor of 3?
What is another term used to refer to incisors and canines
Why solomon say lie able to read and write
Alex mixes 2/3 pounds of walnuts with 3/5 pound of dried fruit. To create more of the same mixture, how many pounds of walnuts does Alex need to mix with one po
for an individual with an open fracture on the leg what would be an appropriate action? A. apply heatB. keep the person walking.C. have the person lie down.D
Convert ‘How do write that word?’ into passive voice Please, I really need help
Find the number of real number solutions for the equation. x2 + 5x + 7 = 0 0 2 1 cannot be determined
I need help with this question please
I need an explanation (present perfect)