为啥输出结果为0.00啊⊙﹏⊙
printf这个函数,没有写输出的参数.2f 默认为小数点后两位正确输出语句:printf("h=%.2f\n",h);
你的printf少了参数h
printf("h=%.2f/n", h);