摘要:
任务6 任务代码 // 三角形面积计算 #include <stdio.h> #include<math.h> int main() { int a,b,c; double s,x; scanf("%d %d %d",&a,&b,&c); s = (a+b+c)/2.0; x = sqrt(s*(s 阅读全文
posted @ 2026-10-17 13:08
最是人间第一情
阅读(7)
评论(0)
推荐(0)
摘要:
任务5 运行代码 // 摄氏温度转换成华氏温度 #include <stdio.h> int main() { double c, f; scanf("%lf", &c); // 待补足: 摄氏温度-> 华氏温度 // xxx f=(9.0/5)*c+32; printf("摄氏度c = %.2f时 阅读全文
posted @ 2026-10-17 11:41
最是人间第一情
阅读(5)
评论(0)
推荐(0)
摘要:
任务4 任务代码 // 计算10亿秒约等于多少年,并打印输出 #include <stdio.h> #include <math.h> int main() { int year; // 补足代码 // ××× year = (int) round(1000000000.0 / (365*24*60 阅读全文
posted @ 2026-10-17 10:49
最是人间第一情
阅读(4)
评论(0)
推荐(0)

浙公网安备 33010602011771号