我用visual C++6.0 怎么最后输出下面m的值不对呢?r=1.5 h=3
#include <stdio.h>int main()
{
float r, h,c,s,g,y,m;
float pi=3.141526;
printf("请输入圆的半径r,圆柱的高h:");
scanf("%f,%f",&r,&h);
c=pi*r*2;
s=r*pi*r;
g=4*pi*r*r;
y=3.0/4.0*pi*r*r*r;
m=h*pi*r*r;
printf("c=%6.2f,s=%6.2f,g=%6.2f,y=%6.2f,m=%6.2f\n",c,s,g,y,m);
return 0;
}