Question: write a program - C A-1) Write a program that reads the radius (bilisi) of a sphere. Then, the program asks the user to input
A-1) Write a program that reads the radius (bilisi) of a sphere. Then, the program asks the user to input a number. If the user inputs 1 the program calculates and prints the surface area of the sphere. If the user inputs 2, the program calculates and prints the volume of the sphere. The following are the required equations, where r is the radius: Surface Area = 4 m r? Volume = 1 Use the value 3.14 for n (Hill)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
