//# include // //using namespace std; //using std::.endl; // //int main() //{ // // float radius, volume, height, pi; // // pi = 3.41; // // cout << " Figuring out the volume of a cylinder \n" << endl; // // cout << " Enter the radius of the cylinder: " << endl; // cin >> radius; // // cout << " Enter the height of the cylinder: " << endl; // cin >> height; // // volume = pi * pow(radius, 2) * height; // // cout << " The volume of the cylider is: " << volume << endl; // // return 0; // //} #include using std::cout; using std::cin; const float PI = 3.14; int main() { float radius, height, volume; cout << "Welcome to the cylinder volume calculator!\n"; cout << "\nEnter cylinder radius: "; cin >> radius; cout << "\nEnter cylinder height: "; cin >> height; volume = PI * pow(radius, 2) * height; cout << "\nThe volume of your cylinder is approximately "; cout << volume << " cubed units."; return 0; }