Checking property of triangle with C

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf(“insurt the value of side a,b,c”);
scanf(“%d%d%d”,&a,&b,&c);
(a==b&&b==c)?printf(“Equilateral”):(a==b || b==c || a==c)?printf(“Isoceles”):printf(“Scalene”);
getch();
}

After running the program 🙂

Leave a Reply