济南万泰装饰lofter:这个程序的运算范围,----C编程

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/01 03:40:00
#include"math.h"
main()
{
float a,b,c,d,e,f,g,h;
printf("qing shu ru di yi ge shu:");
scanf("%f",&a);
printf("qing shu ru zui hou yi ge shu:");
scanf("%f",&b);
printf("qing shu ru gong cha:");
scanf("%f",&c);
h=fabs(a-b);
g=h/c;
e=(a+b)/2;
d=1+g;
f=d*e;
printf("jie guo=%f\n",f);
printf("xie xie shi yong\n");
printf("zhaoli is the best\n");
printf("press any key to close\n");
getch();
}

解y=ax*x+bx+c的