还是三角形.c 422 B

1234567891011121314
  1. #include <stdio.h>
  2. int main() {
  3. int a,b,c;
  4. scanf("%d %d %d",&a,&b,&c);
  5. if(a == b && b == c) printf("等边三角形");
  6. else if(a == b || b == c || a == c) printf("等腰三角形");
  7. else if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a) printf("直角三角形");
  8. else if(a*a + b*b < c*c || b*b + c*c < a*a || c*c + a*a < b*b) printf("钝角三角形");
  9. else printf("锐角三角形");
  10. return 0;
  11. }