2022年8月3日

摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> void paixu(int* arr, int sz) { int i; for(i=0;i<sz-1;i++) { int flag = 1,j; for (j = 0; j < sz - 1 阅读全文
posted @ 2022-08-03 00:22 是个niu 阅读(140) 评论(0) 推荐(0) 编辑

2022年7月30日

摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include<stdio.h> 3 4 int sushu(int n) 5 { 6 int j=2; 7 while (j < n) 8 { 9 if (n % j != 0) 10 j++; 11 else 12 b 阅读全文
posted @ 2022-07-30 23:11 是个niu 阅读(77) 评论(0) 推荐(0) 编辑
 
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include<stdio.h> 3 #include<string.h> 4 int main() 5 { 6 int i; 7 char password[20]={0}; 8 for (i = 0; i < 3; i 阅读全文
posted @ 2022-07-30 00:20 是个niu 阅读(230) 评论(0) 推荐(0) 编辑

2022年7月28日

摘要: 循环法 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include<stdio.h> 3 int main() 4 { 5 int arr[] = { 1,2,3,4,5,6,7,8,9,10 }; 6 int k = 6,num,i; 7 num = sizeof 阅读全文
posted @ 2022-07-28 00:41 是个niu 阅读(64) 评论(0) 推荐(0) 编辑

2022年7月26日

摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include<stdio.h> 3 int main() 4 { 5 int i,j ; 6 int sum=1,num=0 ; 7 for (i = 1; i <= 10; i++) 8 { 9 sum = sum * 阅读全文
posted @ 2022-07-26 22:54 是个niu 阅读(298) 评论(0) 推荐(0) 编辑