c语言,判断能否构成三角形?#include int main(){float a,b,c,s;printf("please input three numbers a,b,c:");scanf("%f%f%f",&a,&b,&c);if(a+b>c&&a+c>b&&b+c>a){s = 1/2*(a+b+c);printf("area = %f\n",s);}elseprintf("不能构成三角形\n");return 0
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/19 16:44:14
c&&a+c>b&&b+c>a){s = 1/2*(a+b+c);printf("area = %f\n",s);}elseprintf("不能构成三角形\n");return 0" />
xN0_DԬ)\^d7NpD$*2
Q16E+D ֗-8+
z9?[T={qI;=Hi;gpd*%dŪQ@.@P:tdfYegU\aɬK9Qvtd2뜑~9( (hPEdQASuA@]Ac?$VŷZ`aƈIs;3QeO0etlcbhWs#zU>N#[
';eBje5U,0.n1E7}M >AZ7>N/J