Question: please use simple code blocks code Write a program to find volume and surface area of sphere. The program should read in radius of sphere

please use simple code blocks code
please use simple code blocks code Write a program to find volume

Write a program to find volume and surface area of sphere. The program should read in radius of sphere and then print the volume and surface area of sphere up-to 3 decimal places. Define Plas 3.1416 (use #define) of the radius is strictly negative, print the error message: The surface and the volume cannot be calculated. Surface area = 4 PI 2 Volume = 4/3* PUTA3 For example: Input Result 40 Surface area of sphere is: 20106.240 square unit Volume of sphere is : 268083.188 cubic unit 1 The surface and the volume cannot be calculated

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!