关于#input#的问题,如何解决?(语言-c语言)

一只大象口渴了,要喝20升水才能解渴,但现在只有一个深h厘米,底面半径为r厘米的小圆桶(h和r都是整数)。问大象至少要喝多少桶水才会解渴。(设PAI=3.14159)

输入提示:"please input the height and the radius:\n"
输入格式:"%d,%d" (h 和 r)
输出格式:"%d"

程序运行示例:
please input the height and the radius:
23,11
3

计算桶的体积,然后20除以体积,结果采用进一法

#include <stdio.h>
#define PAI 3.14159
int main()
{
    int h,r,n;
    double t,s;
    printf("please input the height and the radius:\n");
    scanf("%d,%d",&h,&r);
    t = PAI * r * r * h/10000;
    s = 20/t;
    n = (int)s;
    if(s-n > 0)
        n++;
    printf("%d",n);
}


不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^