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

Evan found out his wife had been killed in an accident, yet he continued setting a place for her at the dinner table every night. This is an example of,a) regre
SPANISH SPEAKER NEED YOUR HELP ASAP You are working over the summer in Spain for a real estate agency, and you need to write a short description for a house in
Which of the following is NOT an effect produced by the sympathetic nervous system? A.) Increased GI motility B.) Relaxation of the bronchioles C.) Increase hea
One can buy many things in the market, except fresh flowers. O A. vrai O B. faux
Hello everyone, I was wondering what 50+8x2 is for my project that I am doing. Thanks
This year you earned 75,500. Last year you earned 72,400. What was the rate of change on your earnings since last year? A. 4.28% B. 4.68% C. 4.92% D. 5.12%​
Which is true of these lines?
the fare for 34 km is Rs 1 190, what will be the fare for 48 km?​
How fast should a girl of 35 kg run so that her kinetic energy becomes 700J of?
Heya !! is an yone wanna talk with me.​