#include <stdio.h>
#include<math.h>
struct triangle {
double a;
double b;
double c;
};
int main(void) {
struct triangle A={7,8,9};
double s=(A.a+A.b+A.c)/2;
double S
=sqrt(s
*(s
-A.
a)*(s
-A.
b)*(s
-A.
c)); printf("三角形の面積: S = %.2lf\n", S
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlPG1hdGguaD4KCnN0cnVjdCB0cmlhbmdsZSB7CiAJZG91YmxlIGE7CiAJZG91YmxlIGI7CiAJZG91YmxlIGM7Cn07CgppbnQgbWFpbih2b2lkKSB7CglzdHJ1Y3QgdHJpYW5nbGUgQT17Nyw4LDl9OwoJZG91YmxlIHM9KEEuYStBLmIrQS5jKS8yOwoJZG91YmxlIFM9c3FydChzKihzLUEuYSkqKHMtQS5iKSoocy1BLmMpKTsKICAgIHByaW50ZigiYSA9ICUuMWxmXG4iLCBBLmEpOwogICAgcHJpbnRmKCJiID0gJS4xbGZcbiIsIEEuYik7CiAgICBwcmludGYoImMgPSAlLjFsZlxuIiwgQS5jKTsKICAgIHByaW50Zigi5LiJ6KeS5b2i44Gu6Z2i56mNOiBTID0gJS4ybGZcbiIsIFMpOwoKIHJldHVybiAwOwp9