Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main()
  5. {
  6. float a, b, c;
  7. scanf("%f%f%f", &a, &b, &c);
  8. if (a >= b + c || b >= a + c || c >= b + a)
  9. {
  10. printf("Ne treugol");
  11. getch();
  12. return 0;
  13. }
  14. else
  15. if (a * a == b * b + c * c || b * b == a * a + c * c || c * c == b * b + a * a)
  16. printf("pryamougol");
  17. else
  18. if (a * a > b * b + c * c || b * b > a * a + c * c || c * c > b * b + a * a)
  19. printf("tupoygol");
  20. else
  21. printf("ostrougol");
  22. getch();
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement