Daniel de Souza Melo Posted April 17, 2023 at 02:18 PM Share Posted April 17, 2023 at 02:18 PM #include <stdio.h> int main(){ float l1,l2,l3; printf("Entre com os tres lados do triangulo: \n"); scanf("%f,%f,%f",&l1,&l2,&l3); l1==l2==l3; if(l1=l2=l3){ printf("Triangulo Equilatero."); }else if((l1=l2!=l3) || (l2=l3!=l1)){ printf("Triangulo Isosceles."); }else if((l1!=l2!=l3) && ((l1<(l2+l3)) || (l2<(l1+l3)) || (l3<(l1+l2)))){ printf("Triangulo Escaleno."); }else{ printf("Triangulo Invalido."); } return 0; } o resultado sempre está dando Triangulo invalido 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.