这个C-free程序错在哪

来源:百度知道 编辑:UC知道 时间:2024/06/04 18:59:12
#include <stdio.h>
#include <math.h>
main()
{
float a ,b, c,disc1,disc2,disc3,disc7,disc8,disc9;

printf("please enter a b c ")
scanf("%lf%lf%lf",&a&b&c);

disc1=a+b,disc2=a+c,disc3=b+c;
disc7=pow(a,2)+pow(b,2);
disc8=pow(a,2)+pow(c,2);
disc9=pow(b,2)+pow(c,2);
if (c<disc1&&b<disc2&&a<disc3)
{
printf ("t=%f不能组成三角形“);
}
else if (ce2=disc7&&be2=disc8&&ce2=disc9)
{
printf ("直角三角形");
}
else if ((pow(c,2)=disc7||a=b)&&(pow(b,2)=disc8||a=c)&&(pow(a,2)=disc9||a=b))
{
printf ("等腰直角三角形”);
}
else if(a=b&&b=c&&a=c)
{
printf("等腰三角形“);
}
else
{
printf("一般三角形”);

这个程序到底错在哪里噶

#include <stdio.h>
#include <math.h>
main()
{
float a ,b, c,disc1,disc2,disc3,disc7,disc8,disc9;

printf("please enter a b c ")
scanf("%lf%lf%lf",&a&b&c);//&a,&b,&c 要用“,”隔开

disc1=a+b,disc2=a+c,disc3=b+c;
disc7=pow(a,2)+pow(b,2);
disc8=pow(a,2)+pow(c,2);
disc9=pow(b,2)+pow(c,2);
if (c<disc1&&b<disc2&&a<disc3)
{
printf ("t=%f不能组成三角形“);// LLL“”书写格式都不匹配 要用英 文下的
}
else if (ce2=disc7&&be2=disc8&&ce2=disc9)//ce2,be2,ce2 没有定义 if()里面应该用 “==” 而不是 “=”
{
printf ("直角三角形");
}
else if ((pow(c,2)=disc7||a=b)&&(pow(b,2)=disc8||a=c)&&(pow(a,2)=disc9||a=b)) //if()里面应该用 “==” 而不是 “=”
{
printf ("等腰直角三角形”);//同上 LLL
}
else if(a=b&&b=c&&a=c) //if()里面应该用 “==” 而不是 “=”
{
printf("等腰三角形“);//同上 LLL<