#include <stdio.h>
void main()
{
int a, b, c;
printf("enter 3 angle to check triangle is Equilateral, Isosceles or Scalene: ");
scanf("%d %d %d", &a, &b, &c);
if (a == 60 && b == 60 && c == 60)
{
printf(" triangle is Equilateral");
}
else if (a == 60 && b == 60 || a == 60 && c == 60 || b == 60 && c == 60)
{
printf("triangle is Isosceles");
}
else
{
printf("triangle is Scalene");
}
}
OUTPUT
Enter 3 angles to check triangle is Equilateral, Isosceles or Scalene: 60
41
52
Triangle is Scalene.
0 Comments