Question: Write a program that computes the volume of a sphere with a 10-meter radius, using the formula v=4/3(Pie)r^3. Write the fraction 4/3 as 4.0f/3.0f. (try
Write a program that computes the volume of a sphere with a 10-meter radius, using the formula v=4/3(Pie)r^3. Write the fraction 4/3 as 4.0f/3.0f. (try writing it as 4/3. what happens?) Hint: C doesn't have an exponentiation operator, so you'll need to multiply r by itself twice to compute r^3. How do I do this in mingw program?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
