Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double A,B,C;
- scanf("%lf%lf%lf",&A,&B,&C);
- if(A >= B + C)
- printf("NAO FORMA TRIANGULO\n");
- else if(A*A = B*B + C*C)
- printf(" TRIANGULO RETANGULO\n");
- else if(A*A > B*B + C*C)
- printf("TRIANGULO OBTUSANGULO\n");
- else if(A*A < B*B + C*C)
- printf("TRIANGULO ACUTANGULO\n");
- if(A==B&&B==C)
- printf(" TRIANGULO EQUILATERO");
- else if(A==B||B==C||C==A)
- printf("TRIANGULO ISOSCELES");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement