#include <stdio.h>
#define PI 3.14159265358979323846 // πの定義
// 円錐の体積を計算する関数
double delta_cone(double r, double h) {
return (1.0 / 3.0) * PI * r * r * h; // 体積の計算
}
int main() {
double radius, height;
// 半径と高さの入力
// 体積の計算
double volume = delta_cone(radius, height);
// 結果の表示
printf("円錐の体積: %.2f\n", volume
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgUEkgMy4xNDE1OTI2NTM1ODk3OTMyMzg0NiAvLyDPgOOBruWumue+qQoKLy8g5YaG6YyQ44Gu5L2T56mN44KS6KiI566X44GZ44KL6Zai5pWwCmRvdWJsZSBkZWx0YV9jb25lKGRvdWJsZSByLCBkb3VibGUgaCkgewogICAgcmV0dXJuICgxLjAgLyAzLjApICogUEkgKiByICogciAqIGg7IC8vIOS9k+epjeOBruioiOeulwp9CgppbnQgbWFpbigpIHsKICAgIGRvdWJsZSByYWRpdXMsIGhlaWdodDsKCiAgICAvLyDljYrlvoTjgajpq5jjgZXjga7lhaXlipsKICAgIHByaW50ZigiMjogIik7CiAgICBzY2FuZigiJWxmIiwgJnJhZGl1cyk7CiAgICBwcmludGYoIjM6ICIpOwogICAgc2NhbmYoIiVsZiIsICZoZWlnaHQpOwoKICAgIC8vIOS9k+epjeOBruioiOeulwogICAgZG91YmxlIHZvbHVtZSA9IGRlbHRhX2NvbmUocmFkaXVzLCBoZWlnaHQpOwoKICAgIC8vIOe1kOaenOOBruihqOekugogICAgcHJpbnRmKCLlhobpjJDjga7kvZPnqY06ICUuMmZcbiIsIHZvbHVtZSk7CglyZXR1cm4gMDsKfQo=