摘要: ` #include <stdio.h> include <stdlib.h> include <time.h> define N 5 int main() { int number; int i; srand( time(0) ); // 以当前系统时间作为随机种子 for(i = 0; i < 阅读全文
posted @ 2024-04-14 20:57 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include <stdlib.h> int main() { printf(" O\n"); printf("\n"); printf("I I\n"); system("pause"); return 0; }` `#include <stdio.h> i 阅读全文
posted @ 2024-03-16 22:18 _FuBuki 阅读(8) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> include<stdlib.h> include<math.h> int main() { int a,b,c; double s,area; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { s=(a+b+c)/2; area=s 阅读全文
posted @ 2024-03-16 22:07 _FuBuki 阅读(3) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include<stdlib.h> int main(){ float f,c; while (scanf("%f",&c)!=EOF) { f=9.0/5.0*c+32; printf("摄氏度c=%.2f时,华氏度f=%.2f\n",c,f); } sys 阅读全文
posted @ 2024-03-16 22:07 _FuBuki 阅读(3) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include <math.h> include <stdlib.h> int main() { double x, ans; while(scanf("%lf", &x) != EOF) { ans = pow(x, 365 ); printf("%.2f的 阅读全文
posted @ 2024-03-16 22:06 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include <math.h> include <stdlib.h> int main() { double x, ans; scanf("%lf", &x); ans = pow(x, 365); printf("%.2f的365次方: %.2f\n", 阅读全文
posted @ 2024-03-16 22:05 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `// 计算10亿秒约等于多少年,并打印输出 include <stdio.h> include <stdlib.h> int main() { int year; year=10000000000/31536000; // 补足代码 // ××× printf("10亿秒约等于%d年\n", ye 阅读全文
posted @ 2024-03-16 22:04 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> int main() { double x, y; char c1, c2, c3; int a1 ,a2 ,a3; scanf("%d%d%d", &a1, &a2, &a3); printf("a1 = %d, a2 = %d, a3 = %d\n", a1 阅读全文
posted @ 2024-03-16 22:03 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include <stdlib.h> include <stdio.h> int main() { char ans1, ans2; // 用于保存用户输入的答案 printf("每次课前认真预习、课后及时复习了没? (输入y或Y表示有,输入n或N表示没有) : "); ans1 = getch 阅读全文
posted @ 2024-03-16 22:01 _FuBuki 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `// 从键盘上输入三个数据作为三角形边长,判断其能否构成三角形 // 构成三角形的条件: 任意两边之和大于第三边 include <stdio.h> include <stdlib.h> int main() { float a, b, c; // 输入三边边长 scanf("%f%f%f", & 阅读全文
posted @ 2024-03-16 22:00 _FuBuki 阅读(4) 评论(0) 推荐(0) 编辑