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:-
Comments
Post a Comment