C languageC SolutionChapter 3Programming

Q18 If the three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is isosceles, equilateral, scalene or right angled triangle

Program: 86

If the three sides of a triangle are entered through the keyboard, write a c program to check whether the triangle is isosceles, equilateral, scalene or right angled triangle

Output:

 Enter the first side: 3
 Enter the second side: 4
 Enter the third side: 5
 Triangle is right angled

 Enter the first side: 2
 Enter the second side: 2
 Enter the third side: 3
 Triangle is isosceles.

 Enter the first side: 3
 Enter the second side: 3
 Enter the third side: 3
 Triangle is equilateral.

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.