#include <stdio.h>#include <conio.h>
int main(void){ float a, b; float m, n, x; a = 7; b = 4; m = 38.4; n = 6.4; x = a / 2 + b * m / n + 1.0 / 2.0; printf("%f\n", x);
getch(); return 0;}// 结果 28
[此贴子已经被作者于2007-11-16 9:48:17编辑过]
int main(void){ float a, b; // 改成浮点数 float m, n, x; a = 7; b = 4; m = 38.4; n = 6.4; x = a / 2 + b * m / n + 1.0 / 2.0; // 改成浮点数 printf("%f\n", x);
```TC2.0?现在主流用什么啊