上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 180 下一页
摘要: /*功能为:输入1个字母后,输出该字母的前序字母、该字母、该字母的后序字母, 例如:输入g,则输出fgh;输入a,则输出zab;输入M,则输出LMN;输入Z,则输出YZA。*/ #include <stdio.h> void main() { char ch,c1,c2; printf("Enter 阅读全文
posted @ 2023-02-07 20:12 myrj 阅读(253) 评论(0) 推荐(0) 编辑
摘要: /*:按下列公式计算并输出x的值。其中a和b的值由键盘输入,并保留3位小数。 x=2ab/(a+b)^2*/ #include <stdio.h> void main() { int a,b; 【4】; scanf("%d,%d",【1】); x=【2】; printf("x=【3】\n",x); 阅读全文
posted @ 2023-02-07 19:47 myrj 阅读(47) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //程序功能:求s=2+4+6+8+...+100 并输出结果 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 main() { 【1】; for(;a<=【2】;a++) { s=【3】; 【4】 } printf("s=%d\n",【5】); 阅读全文
posted @ 2023-02-07 19:32 myrj 阅读(85) 评论(0) 推荐(0) 编辑
摘要: /* 下列程序的功能为:实现加、减、乘、除四则运算。*/ //【1】【2】【3】【4】【5】【6】【7】【8】【9】【10】 #include <stdio.h> void main() { int a,b,d; char ch; printf("Please input a expression: 阅读全文
posted @ 2023-02-07 18:54 myrj 阅读(116) 评论(0) 推荐(0) 编辑
摘要: /* 程序的功能为:判断从键盘上输入的一个字符,并按下列要求输出。 若该字符是数字 输出字符串"0-9" 若该字符是大写字母 输出字符串"A-Z" 若该字符是小写字母 输出字符串"a-z" 若该字符是其他字符 输出字符串"!,@,…" */ #include <stdio.h> void main( 阅读全文
posted @ 2023-02-07 18:46 myrj 阅读(232) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //程序功能:输入一个6*6矩阵,将其主对角线上的元素置1,次对角线置-1,其余元素为0 main() { int 【1】; int i,j; for(i=0;【2】;i++) { 【3】=1; 【4】=-1; } for(i=0;i<=5;i++) { for 阅读全文
posted @ 2023-02-07 17:16 myrj 阅读(342) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //程序功能:输入一行字符,分别统计其中英文字母、数字和其他字符的个数 main() { char c; int i=0,j=0,k=0; while(【1】) { if(c>='0' && c<='9') 【2】; else if(【3】) j++; else 阅读全文
posted @ 2023-02-07 17:12 myrj 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //程序功能:求s=1+2+3+4+5+....+100 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 main() { 【1】; for(a=1;a<=【2】;a++) s=【3】; printf("s=%d\n",【4】); getchar 阅读全文
posted @ 2023-02-07 14:41 myrj 阅读(70) 评论(0) 推荐(0) 编辑
摘要: //交换任意两个整型变量的值 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 【1】 main() { int a=1,b=2; printf("a=%d,b=%d\n",a,b); a=【2】; b=【3】; a=【4】; printf("a=%d,b=%d\n",a,b); ge 阅读全文
posted @ 2023-02-07 14:35 myrj 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Python使用requests時遇到Failed to establish a new connection解决方法:但是程式邏輯的關係我會在短時間使用多次requests.post其結果就是跳出了Failed to establish a new connection這樣一個錯誤google一下 阅读全文
posted @ 2023-02-07 08:51 myrj 阅读(867) 评论(0) 推荐(0) 编辑
上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 180 下一页