Question:

The volume V of a cylinder is given by this formula: V=πr^2

Last updated: 7/24/2022

The volume V of a cylinder is given by this formula: V=πr^2

The volume V of a cylinder is given by this formula: V=πr^2 L V is the Volume r is the cylinder's radius L is for Height Using this formula, write a C++ function named cylvol() that takes in the cylinder's radius and length as arguments and returns its volume. Include the function in a working program. Test the function in main. Function Prototype: double cylvol(double radius, double length);