Given a circular ring, for example a piece of garden hose madeinto a circle and joined at the ends, you can calculate the volumeand surface area by using the formulas:
V = 2 ?2Rr2 and S = 4?2Rr
where R is the radius of the ring and r is the radius of the crosssection of the hose. Note illustration at right. Write a program toask for those two radii and display the Volume and surfacearea.
For PI, use:
const double PI = 3.14159;
This will go BEFORE main, but after using namespace std;
A typical run
PayPal Gateway not configured
PayPal Gateway not configured