05 2023 档案

摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { int n = 13, i; for (i = 1; i <= 12; i++) { /*n = (n * 3 + n % 100 * 10) % 1000;*/ n = n * 13 % 1 阅读全文 »
posted @ 2023-05-22 20:42 258333 阅读(5) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include #include main() { int m[10],n, i, t, a, k; for (n = 2; n <= 1000; n++) //穷举n的取值范围 * { t = 0; a = n; k = 0 阅读全文 »
posted @ 2023-05-22 20:41 258333 阅读(19) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<math.h> main() { int m[16],n, i, t, a; for (n = 100; n <= 999; n++) //穷举n的取值范围 * { t = 阅读全文 »
posted @ 2023-05-22 20:40 258333 阅读(9) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define N 10 void main() { int n[N]; int i, j, k, s = 0, flag, a; for (i = 0; i <= 256; i++) { a 阅读全文 »
posted @ 2023-05-22 20:39 258333 阅读(9) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { long i, j; for (i = 0; i <= 10000; i++) { for (j = 10;; j *= 10) if (i % j == i)break; if ((i * 阅读全文 »
posted @ 2023-05-22 20:38 258333 阅读(12) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { int i, j, s1, s2, n = 3000; for (j = 2; j j)printf("%d -- %d\n",j,s1); } } ``` ![](https://img20 阅读全文 »
posted @ 2023-05-22 20:38 258333 阅读(18) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { int i, j, s, n; printf("输入所范围的上限:"); scanf("%d", &n); for (j = 2; j <= n; j++) { s = 1; //保证每次循环 阅读全文 »
posted @ 2023-05-22 20:37 258333 阅读(22) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { int x, y, z, count = 1; printf("可能的兑换方法如下:\n"); for (x = 0; x <= 50; x += 10)/*x为1元硬币钱数,其取值为0,10 阅读全文 »
posted @ 2023-05-22 20:36 258333 阅读(8) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include main() { int x, y, z, number = 0; printf(" Men Women Children\n"); /*将变量x的可能取值依次代入方程组*/ for (x = 0; x <= 阅读全文 »
posted @ 2023-05-22 20:35 258333 阅读(11) 评论(0) 推荐(0) 编辑
摘要:``` #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include<math.h> main() { double sum = 0; /*定义double型变量sum存放累加和*/ int i; /*使用循环求累加和*/ for (i = 阅读全文 »
posted @ 2023-05-10 21:11 258333 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> //int a[14]; //main() //{ // int i, j = 1, n; // printf("魔术师手中的牌原始次序是:\n"); // for (i = 1; i <= 13; 阅读全文 »
posted @ 2023-05-10 21:10 258333 阅读(3) 评论(0) 推荐(0) 编辑
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int N, sum, i; /* while(scanf("%d", &N) != EOF)*/ while(scanf("%d", &N) != 0) //输入N值,若 阅读全文 »
posted @ 2023-05-08 21:01 258333 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> void Up(int speed[]) { int i; for (i = 4; i > 0; i--) { if (speed[i] == 10) { speed[i - 1]++; speed 阅读全文 »
posted @ 2023-05-08 21:00 258333 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> ////直接计算 //int main() //{ // int j; //第几次卖 // int x = 11; //鱼的条数 // for (j = 5; j >= 2; j--) // { / 阅读全文 »
posted @ 2023-05-04 21:30 258333 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示