#include <stdio.h>
int main(void) {
double a, b, c, x, y, z;
printf ("Введите длины сторон треугольника.\n"); scanf ("%lf %lf %lf\n", &a
, &b
, &c
); if ((a>0) && (b>0) && (c>0) && (a+b>c) && (b+c>a) && (a+c>b))
{
y=(a+b-c)/2;
x=a-y;
z=b-y;
printf("x=%lf, y=%lf, z=%lf\n", x
, y
, z
); }
else
{
printf ("Не является треугольником.\n"); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7Cglkb3VibGUgYSwgYiwgYywgeCwgeSwgejsKCXByaW50ZiAoItCS0LLQtdC00LjRgtC1INC00LvQuNC90Ysg0YHRgtC+0YDQvtC9INGC0YDQtdGD0LPQvtC70YzQvdC40LrQsC5cbiIpOwoJc2NhbmYgKCIlbGYgJWxmICVsZlxuIiwgJmEsICZiLCAmYyk7CglpZiAoKGE+MCkgJiYgKGI+MCkgJiYgKGM+MCkgJiYgKGErYj5jKSAmJiAoYitjPmEpICYmIChhK2M+YikpIAoJewoJCXk9KGErYi1jKS8yOwoJCXg9YS15OwoJCXo9Yi15OwoJCXByaW50ZigieD0lbGYsIHk9JWxmLCB6PSVsZlxuIiwgeCwgeSwgeik7Cgl9CgllbHNlIAoJewoJCXByaW50ZiAoItCd0LUg0Y/QstC70Y/QtdGC0YHRjyDRgtGA0LXRg9Cz0L7Qu9GM0L3QuNC60L7QvC5cbiIpOwoJfQoJcmV0dXJuIDA7Cn0K