Question: Correct the code shown below /* C program to find surface area and volume of sphere. */ #include #define PI 3.14f #define radius 1.50; int

 Correct the code shown below /* C program to find surface

Correct the code shown below /* C program to find surface area and volume of sphere. */ #include #define PI 3.14f #define radius 1.50; int main() { float PI, radius, surface_area, volume; printf("Radius of sphere: %d ", radius); surface_area_ = 4*PI*pow(radius, 2); volume = (4/3)*PI*pow(radius, 3); printf("Surface area of sphere: %f Volume of sphere: %d ", surface_area, volume); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!