Check whether the triangle is isosceles, equilateral, scalene or right angled triangle.

This post content:-
Algorithm
Flowchart
C code
Output
PDF notes

Algorithm:-
Step 1:- start.
Step 2:- Declare three sides of the triangle.
Step 3: Enter three sides at run time.
Step 4:
   if(side1 == side2 && side2 == side3)
      printf("The Given Triangle is equilateral\n");
   else if(side1 == side2 || side2 == side3 || side3 == side1)
      printf("The given Triangle is isosceles\n");
   else
      printf("The given Triangle is scalene\n");
Step 5:- end.

Flowchart:-
C code:-

Output:-
 Try it yourself:-

Comments

Popular posts from this blog

Develop a program to print values of variable and their addresses.

Develop a c program to find the sum of all elements stored in a given array using a pointer.