求圆柱体体积
#include <stdio.h> #define PI 3.1415926 int main() { float v,r, h=2.5; scanf ("%f",&r); v=PI*r*r*h; printf("Volume=%f",v); return 0; }