C Program to classify the triangle as equilateral, isosceles and scalene.

Equilateral triangle means all three side and angles are equal(i.e. 60 degree).

Isosceles triangle means any two side and angles are equal.

Scalene triangle means , any sides and any angles are not equal.

Read more about C Programming Language .

Equilateral triangle means all three side and angles are equal(i.e. 60 degree).

Isosceles triangle means any two side and angles are equal.

Scalene triangle means , any sides and any angles are not equal.

Read more about C Programming Language .

Read more Similar C Programs

Learn C Programming

Simple C Programs

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

our page!

Share this program with your Facebook friends now! by liking it

(you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

Advertisements

## One comment on “C Program to classify the triangle as equilateral, isosceles and scalene”

#include

#include

voidmain()

{

inta,b,c;

lcrsc();

printf("enter the values of a,b,c");

scanf(:%d%d%d",&a,&b,&c);

ifa+b>c&&b+c>a&&c+d>b)

if(a==b&&b==c)

{

printf("equilateral triangle");

}

elseif(a==b||b==c)

{

printf("isosceles trianlge");

}

elseif(a!=b&&b!==c)

{

printf("scalar triangle");

}

else

{

printf("not a valid trianlge");

}

getch();

}