HW: Volume & Surface Area
Specification
- Input: radius
- Output: The volume and surface area of a sphere.
- Relationship:
- Hint: You may define a constant pi = 3.14159.
The program may run as follows.
(Please leave a blank line between the
input and the output so that it looks more clear.)
R = ? 2.0
Volume = 33.5103
Area = 50.2654