//已知圆柱体的半径和高,求圆柱体的体积。#include#include using namespace std;int main(){ //首次使用const来规定常量;在C语言中会使用#DEFINE const float PI = 3.14f; float radius = 4.5f; float height = 28.7f; double volume = PI * pow(radius, 2) * height; cout << "the volume is " << volume << endl; cin.get(); return 0;}