#include <stdio.h>
int main(void) {
int jyoutei;
int katei;
int takasa;
int menseki;
if (jyoutei<0){
}
if (katei<0){
}
if (takasa<0){
}
menseki = (jyoutei + katei )*takasa/2 ;
printf("上底 %d 下底 %d 高さ %d の台形の面積は %d です。\n",jyoutei
,katei
,takasa
,menseki
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CmludCBqeW91dGVpOwppbnQga2F0ZWk7CmludCB0YWthc2E7CmludCBtZW5zZWtpOwoKc2NhbmYoIiVkIiwmanlvdXRlaSk7CmlmIChqeW91dGVpPDApewoJcHJpbnRmKCLkuIrlupXjgYzosqDjga7plbfjgZXjgafoqIjnrpfjgZfjgb7jgZnjgojvvIFcbiIpOwp9CnNjYW5mKCIlZCIsJmthdGVpKTsKaWYgKGthdGVpPDApewoJcHJpbnRmKCLkuIvlupXjgYzosqDjga7plbfjgZXjgafoqIjnrpfjgZfjgb7jgZnjgojvvIFcbiIpOwp9CnNjYW5mKCIlZCIsJnRha2FzYSk7CmlmICh0YWthc2E8MCl7CglwcmludGYoIumrmOOBleOBjOiyoOOBrumVt+OBleOBp+ioiOeul+OBl+OBvuOBmeOCiO+8gVxuIik7Cn0KbWVuc2VraSA9IChqeW91dGVpICsga2F0ZWkgKSp0YWthc2EvMiA7CnByaW50Zigi5LiK5bqVICVkIOS4i+W6lSAlZCDpq5jjgZUgJWQg44Gu5Y+w5b2i44Gu6Z2i56mN44GvICVkIOOBp+OBmeOAglxuIixqeW91dGVpLGthdGVpLHRha2FzYSxtZW5zZWtpKTsKCXJldHVybiAwOwp9Cg==