上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2022年9月26日

摘要: #include <stdio.h> main() { int t,x; scanf("%d",&x); t=-1; while (x!=-1) { if(x>t) { t=x; } scanf("%d",&x); } printf("%d", t); } 阅读全文

posted @ 2022-09-26 23:07 lachesism 阅读(249) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int m, n, j=0, k=0; scanf("%d %d",&m,&n); j = m; while (j % n != 0) { j = j + m; k = (m * n) / j; } printf("最小公倍数是%d\n最大公约 阅读全文

posted @ 2022-09-26 23:06 lachesism 阅读(32) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int year, month, day; int sum = 0, flag = 0; scanf("%d %d %d", &year, &month, &day); switch(month) { case 1: sum = 0; 阅读全文

posted @ 2022-09-26 23:04 lachesism 阅读(133) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int year, month; scanf("%d %d", &year, &month); switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: 阅读全文

posted @ 2022-09-26 23:02 lachesism 阅读(130) 评论(0) 推荐(0)

摘要: #include<stdio.h> int main() { int x,y,z,t; scanf("%d %d %d",&x,&y,&z); if(x<y) { t=x;x=y;y=t; } if(x<z) { t=x;x=z;z=t; } if(y<z) { t=y;y=z;z=t; } pri 阅读全文

posted @ 2022-09-26 22:48 lachesism 阅读(743) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); if(x<y) { printf("%d %d",x,y); } else { printf("%d %d",y,x); } } 阅读全文

posted @ 2022-09-26 22:46 lachesism 阅读(270) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { char a; scanf("%c",&a); if(a >= 65 && a<= 90) { printf("upper"); } else if(a >= 97 && a <= 122) { printf("lower"); } e 阅读全文

posted @ 2022-09-26 22:45 lachesism 阅读(808) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { char x; scanf("%c", &x); if (x >= 'a' && x <= 'z') printf("%c", x - 32); else if (x >= 'A' && x <= 'Z') printf("%c", x 阅读全文

posted @ 2022-09-26 22:44 lachesism 阅读(285) 评论(0) 推荐(0)

摘要: 已知A矩阵为: 4 20 12 8 3 15 0 40 8 22 12 36 11 30 18 46 将A中元素大于10且小于25的数找出来,并输出该值在矩阵中的坐标位置 要求输出 11 4 1 20 1 2 15 2 2 22 3 2 12 1 3 12 3 3 18 4 3 A=[4,20,12 阅读全文

posted @ 2022-09-26 22:33 lachesism 阅读(186) 评论(0) 推荐(0)

摘要: 已知A矩阵为: 4 20 12 8 3 15 0 40 8 22 12 36 11 30 18 46 将A中元素能被3整除的,全部置0 要求输出 4 20 0 8 0 0 0 40 8 22 0 0 11 0 0 46 A=[4,20,12,8;3,15,0,40;8,22,12,36;11,30, 阅读全文

posted @ 2022-09-26 22:32 lachesism 阅读(135) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页