Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to calculate the volume of a sphere in C. When I run my program and insert a 2 for the radius, the

I am trying to calculate the volume of a sphere in C. When I run my program and insert a "2" for the radius, the output I am getting is "25.13" when it should be "33.51". I think my error has to do with the division part of the equation but I can not figure out where I messed up in my code.
image text in transcribed
result =y+z/x; V. Hiat mesear cimint scanf("sid", Eradius), ", "sitg " chastactop volume =x/y PI radius radius radius t printe ( Insphere volume and voivno printf ("/, printf ("gf, pI , printf ("n), printf ("sa" padius), printf ("+)n) ? printf ("d", radius), , hien changed to "ode printe (n+ in ) printf ("9. , radius), ,, Shan changhec to coscio printe (") "), printf ("s. 7flnn, volume)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions