#include <stdio.h>
int main() {
float v, h;
float s, l;
printf("縦の長さを入力してください: ");
scanf("%f", &v);
printf("横の長さを入力してください: ");
scanf("%f", &h);
s = v * h;
l = 2 * (v + h);
printf("長方形の面積: %f\n", s);
printf("長方形の周の長さ: %f\n", l);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGZsb2F0IHYsIGg7CiAgICBmbG9hdCBzLCBsOwogICAgICAgcHJpbnRmKCLnuKbjga7plbfjgZXjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6ICIpOwogICAgc2NhbmYoIiVmIiwgJnYpOwogICAgcHJpbnRmKCLmqKrjga7plbfjgZXjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6ICIpOwogICAgc2NhbmYoIiVmIiwgJmgpOwoKICAgcyA9IHYgKiBoOwogICAgbCA9IDIgKiAodiArIGgpOwoKICAgIHByaW50Zigi6ZW35pa55b2i44Gu6Z2i56mNOiAlZlxuIiwgcyk7CiAgICBwcmludGYoIumVt+aWueW9ouOBruWRqOOBrumVt+OBlTogJWZcbiIsIGwpOwoKICAgIHJldHVybiAwOwp9Cg==