Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- float a, b, c;
- scanf("%f%f%f", &a, &b, &c);
- if (a >= b + c || b >= a + c || c >= b + a)
- {
- printf("Ne treugol");
- getch();
- return 0;
- }
- else
- if (a * a == b * b + c * c || b * b == a * a + c * c || c * c == b * b + a * a)
- printf("pryamougol");
- else
- if (a * a > b * b + c * c || b * b > a * a + c * c || c * c > b * b + a * a)
- printf("tupoygol");
- else
- printf("ostrougol");
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement