#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+CgojZGVmaW5lIFBJIDMuMTQxNTkyNjUzNTg5NzkzMjM4NDYgCgpkb3VibGUgZGVsdGFfY29uZShkb3VibGUgciwgZG91YmxlIGgpIHsKICAgIHJldHVybiAoMS4wIC8gMy4wKSAqIFBJICogciAqIHIgKiBoOyAKfQoKaW50IG1haW4oKSB7CiAgICBkb3VibGUgcmFkaXVzLCBoZWlnaHQ7CgogICAgcHJpbnRmKCJyIik7CiAgICBzY2FuZigiJWxmIiwgJnJhZGl1cyk7CiAgICBwcmludGYoImgiKTsKICAgIHNjYW5mKCIlbGYiLCAmaGVpZ2h0KTsKCiAgICBkb3VibGUgdm9sdW1lID0gZGVsdGFfY29uZShyYWRpdXMsIGhlaWdodCk7CgogICAgcHJpbnRmKCLlhobpjJDjga7kvZPnqY06ICUuMmZcbiIsIHZvbHVtZSk7CgoJcmV0dXJuIDA7Cn0K