// Properties of spheres of radii 1, 3, and 7 // using function argument #include #include using namespace std; const double pi = 3.1416; void Sphere(double r) // r is an argument { double area, volume; area = 4. * pi * r * r; volume = 4./3. * pi * r * r * r; cout << r << ' ' << area << ' ' << volume << endl; } int main() { Sphere(1.); Sphere(3.); Sphere(7.); }