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

2022年9月26日

摘要: #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 阅读(128) 评论(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 阅读(124) 评论(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 阅读(726) 评论(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 阅读(263) 评论(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 阅读(785) 评论(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 阅读(277) 评论(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 阅读(176) 评论(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 阅读(128) 评论(0) 推荐(0)

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

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

摘要: 计算矩阵的加减运算 已知矩阵为A为 2 4 3 5 矩阵B为 2 5 6 2 1 3 0 8 计算矩阵: 1. B的左侧2列分别乘以A中对应元素的值;B的右侧2列分别乘以A中对应元素的值 2. A*B 3. B的转置乘以A, 即B'*A 要求输出 4 20 12 8 3 15 0 40 8 22 1 阅读全文

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

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