#include <stdio.h>
#include <math.h>
struct hen {
double a;
double b;
double c;
double s;
double S;
}sankaku;
int main(void) {
sankaku.s = (sankaku.a+sankaku.b+sankaku.c)/2.0;
sankaku.
S = sqrt(sankaku.
s*(sankaku.
s-sankaku.
a)*(sankaku.
s-sankaku.
b)*(sankaku.
s-sankaku.
c));
printf("辺aの長さは%lf\n",sankaku.
a); printf("辺bの長さは%lf\n",sankaku.
b); printf("辺cの長さは%lf\n",sankaku.
c); printf("ヘロンの公式より面積は%lf\n",sankaku.
S);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgpzdHJ1Y3QgaGVuIHsKCWRvdWJsZSBhOwoJZG91YmxlIGI7Cglkb3VibGUgYzsKCWRvdWJsZSBzOwoJZG91YmxlIFM7Cn1zYW5rYWt1OwoKaW50IG1haW4odm9pZCkgewoJCglzY2FuZigiJWxmIiwmc2Fua2FrdS5hKTsKCXNjYW5mKCIlbGYiLCZzYW5rYWt1LmIpOwoJc2NhbmYoIiVsZiIsJnNhbmtha3UuYyk7CgoJc2Fua2FrdS5zID0gKHNhbmtha3UuYStzYW5rYWt1LmIrc2Fua2FrdS5jKS8yLjA7CgkKCXNhbmtha3UuUyA9IHNxcnQoc2Fua2FrdS5zKihzYW5rYWt1LnMtc2Fua2FrdS5hKSooc2Fua2FrdS5zLXNhbmtha3UuYikqKHNhbmtha3Uucy1zYW5rYWt1LmMpKTsKCQoJcHJpbnRmKCLovrph44Gu6ZW344GV44GvJWxmXG4iLHNhbmtha3UuYSk7CglwcmludGYoIui+umLjga7plbfjgZXjga8lbGZcbiIsc2Fua2FrdS5iKTsKCXByaW50Zigi6L66Y+OBrumVt+OBleOBryVsZlxuIixzYW5rYWt1LmMpOwoJcHJpbnRmKCLjg5jjg63jg7Pjga7lhazlvI/jgojjgorpnaLnqY3jga8lbGZcbiIsc2Fua2FrdS5TKTsKCglyZXR1cm4gMDsKfQoK