计算球体积-题解(C++代码) 摘要:解题思路:循环输入输出,直到EOF(end of file)注意事项:double v=4.0/3.0 * 3.1415926 * (r*r*r);参考代码:/* */ #include <c…… 题解列表 2020年08月26日 0 点赞 0 评论 340 浏览 评分:0.0
计算球体积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415#include<math.h>int main(){ double r,v; while…… 题解列表 2022年12月22日 0 点赞 0 评论 128 浏览 评分:0.0
1173: 计算球体积 摘要:解题思路:注意事项:参考代码:import mathwhile True: try: r = float(input()) pi = math.pi …… 题解列表 2022年11月24日 0 点赞 0 评论 301 浏览 评分:0.0
题解 1173: 计算球体积 摘要:解题思路:运用while循环解答注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(St…… 题解列表 2023年04月13日 0 点赞 0 评论 208 浏览 评分:0.0
1173一行解(Python) 摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print('{:.2f}'.format((4/3)*math.p…… 题解列表 2022年11月05日 0 点赞 0 评论 310 浏览 评分:0.0
计算球体积(C++代码) 摘要:参考代码:#include <iostream>#include <cmath> // 包含cmath头文件来使用pow函数和M_PI常量#include<iomanip>using namespa…… 题解列表 2023年07月12日 0 点赞 0 评论 471 浏览 评分:0.0
计算球体积,认识EOF 摘要:解题思路:注意事项:EOF是End Of File的意思,表示文件结束,无可读取参考代码:#include<stdio.h>#include<math.h>#define PI 3.14159int …… 题解列表 2023年11月30日 0 点赞 0 评论 168 浏览 评分:0.0
编写题解 1173: 计算球体积 摘要:解题思路:注意事项:参考代码:while True: try: r=float(input()) print('%.3f'%((4/3)*…… 题解列表 2022年02月17日 0 点赞 0 评论 419 浏览 评分:0.0
Hifipsysta-1173-计算球体积(C++代码) 摘要:```cpp #include #include using namespace std; float compute_volume(float r){ return (4.0/…… 题解列表 2022年02月05日 0 点赞 0 评论 200 浏览 评分:0.0
1173: 计算球体积 摘要:解题思路:先进行一个宏定义,然后,再在一个while(scanf("%f",&a)!=EOF)中进行多组输入,最后,在while循环中输出。注意事项:参考代码:#include<stdio.h>#de…… 题解列表 2021年12月03日 0 点赞 0 评论 426 浏览 评分:0.0