Write a program to calculate surface area and volume of a sphere (ball). The program will ask user to input radius (meter (s)) of a sphere and return its area and volume (output should round to three decimal places). Use macro #define for value of π (suppose π = 3.1415927). Learn to use pow function for evaluating square and cubic in math. h of C programming library (Google ""pow c programming""). You can use scanf function and double type for radius input. Name your program file Hw2 Q1 Code. c.
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program to calculate surface area and volume of a sphere (ball). The program will ask user to input radius (meter (s)) of a sphere ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a program to calculate surface area and volume of a sphere (ball). The program will ask user to input radius (meter (s)) of a sphere and return its area and volume (output should round to three decimal places).