//in c programming
main()
{
int a,b,c;int flag=0;
printf("enter the sides of triangle");
scanf("%d%d%d",&a,&b,&c);
while(flag==0)
{
if(a==b&b==c)
{
printf("triangle is equilateral");
break;
}
if(a==b||b==c||c==a)
{
printf(triangle is isoceles");
break;
}
if(a!=b&&b!=c&&c!=a)
{
printf("triangle is scalene");
break;
}
}//while closes
getch();
}
but compiler shows error in break says misplaced break
2007-08-14
06:40:55
·
5 answers
·
asked by
nikhil k
1
in
Computers & Internet
➔ Programming & Design