Advertisement
PedroSG

Untitled

Apr 25th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3.  
  4.  {
  5.      double A,B,C;
  6.      A > B;
  7.      A > C
  8.      scanf("%lf %lf %lf",&A,&B,&C);
  9.      if (A>=B+C)
  10.      {
  11.          printf("NAO FORMA TRIANGULO\n");
  12.      }
  13.      if (A*A==(B*B)+(C*C))
  14.      {
  15.          printf("TRIANGULO RETANGULO\n");
  16.      }
  17.      if ((A*A)>(B*B)+(C*C))
  18.      {
  19.          printf("TRIANGULO OBTUSANGULO\n");
  20.      }
  21.      if ((A*A)<(B*B)+(C*C))
  22.      {
  23.          printf("TRIANGULO ACUTANGULO\n");
  24.      }
  25.      if (A==B && B==C && A==C)
  26.      {
  27.          printf("TRIANGULO EQUILATERO\n");
  28.      }
  29.      if (A==B || B==C || A==C)
  30.      {
  31.          printf("TRIANGULO ISOSCELES\n");
  32.      }
  33.   return 0;
  34.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement