Advertisement
Guest User

jt nayeem

a guest
Nov 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. double A,B,C;
  5. scanf("%lf%lf%lf",&A,&B,&C);
  6. if(A >= B + C)
  7. printf("NAO FORMA TRIANGULO\n");
  8. else if(A*A = B*B + C*C)
  9. printf(" TRIANGULO RETANGULO\n");
  10. else if(A*A > B*B + C*C)
  11. printf("TRIANGULO OBTUSANGULO\n");
  12. else if(A*A < B*B + C*C)
  13. printf("TRIANGULO ACUTANGULO\n");
  14. if(A==B&&B==C)
  15. printf(" TRIANGULO EQUILATERO");
  16. else if(A==B||B==C||C==A)
  17. printf("TRIANGULO ISOSCELES");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement