上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 181 下一页
摘要: #include <stdio.h> //补充程序使输出结果是1,2,6,24,120 【1】 ff(int n) { 【2】 int f=1; f=【3】; return f; } main() { int i; for(i=1;【4】;i++) printf("%d,",【5】); printf 阅读全文
posted @ 2023-02-17 14:39 myrj 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 【1】 //全局变量与局部变量的使用 【2】d=1; 【3】 fun(int 【4】) { int d=5; d+=p++; printf("%d ",d); } main() { int a=3; 【5】;//以a为参数调用fun函数 d+=a++; printf("%d ",d); getcha 阅读全文
posted @ 2023-02-17 14:30 myrj 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //根据学生成绩输出评定等级。成绩为90-100分输出“A",成绩为80-89分输出"B" // 成绩为70-79分输出"C",成绩为60-69分输出"D",否则输出”E" main() { int cj;【1】; printf("please input st 阅读全文
posted @ 2023-02-17 14:21 myrj 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //任意输入两个整数,输出这两个数的最大公约数和最小公倍数 main() { int a,b,c,gys,gbs; scanf("%d%d",&a,&b) ; for(c=a;【1】;c--) { if(【2】) { gys=【3】; 【4】; } } gbs= 阅读全文
posted @ 2023-02-17 11:36 myrj 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> //根据输入的三角形的三条边判断能否组成三角形,并判断三角形的类型,并输出其面积 //三角形类型区分等边 等腰 等腰直角 直角三角形 main() { float a,b,c,mj,p; scanf("%f%f%f",&a,& 阅读全文
posted @ 2023-02-17 10:33 myrj 阅读(813) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输出1980-2020年之间所有的闰年,每行三个 main() { int year,【1】,b; for(year=1980;year<=2020;year++) { 【2】; if(【3】) { printf("%5d",year); count++; 阅读全文
posted @ 2023-02-17 10:08 myrj 阅读(488) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //用来统计输入的字符中所有大写字母的个数,用#结束输入 main() { int a[26],i; char ch; for(i=0;i<26;i++) a[i]=【1】; ch=getchar(); while(【2】) { if(ch>=65&&ch<=9 阅读全文
posted @ 2023-02-17 09:48 myrj 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //功能:从键盘输入一个整数,如果不高于9999则逆序输出,否则打印“输入范围错误" main() { 【1】; 【2】; if(x<=9999) do{ printf("%d",【3】); 【4】; }【5】 else printf("输入范围错误"); ge 阅读全文
posted @ 2023-02-17 09:34 myrj 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //功能:从键盘上输入若干学生的成绩,统计并输出最高成绩和最低成绩 //当输入负数时结束输入,请将程序补充完整 main() { float x,amax,amin; scanf("%f",【1】) ; amax=x; amin=x; while(【2】) { 阅读全文
posted @ 2023-02-17 09:27 myrj 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //求s=1-3+5-7+...-99+101并输出 main() { int i,t=1,【1】; for(i=1;【2】;【3】) { s=【4】; t=【5】; } printf("s=%d\n",s); getchar(); } 求s=1-3+5-7+. 阅读全文
posted @ 2023-02-17 09:18 myrj 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 181 下一页