level 8
#inlclude<stdio.h>
#define HEG 0.53
int main(void)
{
float mather,father,son=0.2f;
printf("\n请输入父亲的身高:");
scanf("%f",&father);
printf("\n请输入母亲的身高:");
scanf("%f",&mather);
son=(father+mather)*HEG;
///printf("%2f" ,son);
///son=son*HEG;
printf("\n您们的儿子身高大约是%2f",son);
return 0;
}
2018年06月09日 05点06分
1
level 2
楼主好,请问第二行#define HEG 0.53是,什么意思,小白求解,
2018年06月14日 19点06分
2
设置的常数。
2018年06月14日 23点06分