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
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
Get step-by-step solutions from verified subject matter experts
