摘要: 任务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)
摘要: 任务3 运行代码 #include <stdio.h> int main() { char ans1, ans2; printf("每次课及时预习/复习了没? (是-输入y或Y, 否-输入n或N) : "); ans1 = getchar(); getchar(); printf("\n动手敲代码实 阅读全文
posted @ 2026-10-16 23:51 最是人间第一情 阅读(4) 评论(0) 推荐(0)
摘要: 任务2 源代码 #include <stdio.h> int main() { double a, b, c; // 输入三边边长 scanf("%lf%lf%lf", &a, &b, &c); // 判断能否构成三角形 // 补足括号里的逻辑表达式 if(a+b>c&&b+c>a&&a+c>b) 阅读全文
posted @ 2026-10-16 15:16 最是人间第一情 阅读(6) 评论(0) 推荐(0)
摘要: 任务1 源代码 #include<stdio.h> int main () { printf(" O\n"); printf("<H>\n"); printf("I I\n"); return 0; } 任务截图 任务2 源代码 #include <stdio.h> int main() { dou 阅读全文
posted @ 2026-10-16 15:08 最是人间第一情 阅读(7) 评论(1) 推荐(0)