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

Some people want healthy cereal that will help them lose weight or possibly prevent certain kinds of cancer. Some want pre-sweetened cereal. Some want fruits an
A round silo is 55 feet tall and has a 24 foot radius. How high would a load of 38000 cubic feet of grain fill the silo?
what is ucspi-tcp pakage in qmail??
What are the roots squares of x minus 8x plus 9 equal to 0
Write Eduardo’s blog to provide some information about commercial services in Ecuador that tourists should know about. Use what you learned in the lesson and al
Simplify. (-2)^-3 a.-8 b.-1/8 c.1/8 d.8
Which of the following will cause asyntax error?(0 < num)&& (num <12)0 < num <120 < num&& num < 12num > 0&& num <
The emperor Justinian capitulated to the Huns and abdicated the throne, marking the end of the western Roman Empire. declared Constantinople the new capital of
Solve the expression x^2-100=0
How would you like to travel to a place where French is spoken? This is your chance to plan the perfect vacation! If you have a local tourism office, you can vi