#include using namespace std; int main() { float diameter, height, volume, radius; const float pi=3.14159; cout << "What is the diameter of the cone: "; cin >> diameter; cout << "What is the height? "; cin >> height; radius = diameter/2.0; volume = (1.0/3.0)*pi*(radius*radius)*height; cout << "The volume of the cone is " << volume << endl; }