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 additional word or words in the sentence should be capitalized? The north star is part of the constellation Ursa Minor. Choose all answers that are correc
Which of the following was an effect of the industrialization of cities in the early 1800s? [a] Planned housing for workers, [b] Decreased poverty rates,[c] The
write an essay on the role of ICT in the transformation of education :a futuristic approach
please help with answers
What was problematic about the 1876 presidential election
The y-intercept of the line y=-6.5 is
One way to build a staircase is to attach triangular blocks to an angled support, as shown above. If the support makes a 32 angle with the floor, what must the
What type of substances make better conductors
The United States and its allies in the fall of 2001 began an effort to defeat terrorists. All of the following were individuals or groups who were the target o
What process releases carbon dioxide back into the atmosphere?