Question: Write a program in C that accepts: 1. the radius of a sphere in a variable say radius, 2. The choice (in a character variable

 Write a program in C that accepts: 1. the radius of

Write a program in C that accepts: 1. the radius of a sphere in a variable say radius, 2. The choice (in a character variable choice) .If the choice is a, area of sphere should be found else the volume of the sphere should be found. area of a sphere is given by the formula: area=4 x tu x radius? and the volume of the sphere is given by the formula: volume=4/3 x radius Note: Create/Use appropriate header files, constants and functions Sample Output 1: Enter the radius of the sphere :1 Enter choice: a for area of sphere and v volume of sp Volume of sphere is 4.186667

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!