题解 | #牛牛的球#

牛牛的球

https://www.nowcoder.com/practice/203ca3114f8845a9bbd673bae6c5dd2b

#include <stdio.h>

int main() {
    float r;
    scanf("%f",&r);
    float V = (4/3.0)*3.14*r*r*r;//float类型注意4/3要写成4/3.0
    printf("%0.2f",V);
    return 0;
}

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务