C Program to check if a triangle is Isosceles Equilateral or Scalene

Program

/* Program to check whether the triangle is isosceles, equilateral or scalene using if-else */
#include<stdio.h>
void main()
{
	int a, b, c;
	printf("Enter three sides of a triangle\n");
	scanf("%d %d %d", &a, &b, &c);
	if((a==b) && (b==c) && (a==c))
		printf("\nTriangle is Equilateral Triangle");
	else if((a==b || a==c) || (b==a || b==c) || (c==a || c==b))
		printf("\nTriangle is Isosceles Triangle");
	else
		printf("\nTriangle is Scalene Triangle");
}

Output 1

Enter three sides of a triangle
22
45
10
Triangle is Scalene

Output 2

Enter three sides of a triangle
11
11
11
Triangle is Equilateral

Output 3

Enter three sides of a triangle
12
12
9
Triangle is Isosceles