Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started