#include <stdio.h>
int main() {
int a,b,c;
printf("Introduzca la longitud de los tres lados: \n");
scanf("%d %d %d",&a,&b,&c);
if(a==b==c)
{
printf("Es un triángulo equilatero");
}
else if(a==b || a==c || b==c)
{
printf("Es un triángulo isósceles");
}
else
{
printf("Es un triángulo escaleno");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: