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 of the following words could be used in the sentence below? “After being struck on the head, the baseball player quickly began to feel the effects of ____
Solve using the substitution method. 3x +2y= 19 xy= 15​
In ΔIJK, k = 76 cm, i = 62 cm and ∠J=84°. Find the length of j, to the nearest centimeter.
find the perimeter of a rectangle whose sides are 8 1/2cm by 4 1/2cm.​
can anyone help im lost
Draw the following lines and then write an equation for each. Remember: y = mx + b Slope is 2, y-intercept is -1
which number is less than 909 and greater than 868​
explain how to write 3/10 as a division expression
Please answer this? Thank you.
SOMEONE PLEASE HELP ASAP