摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> int main() { char input[20] = { 0 }; //shutdown -s -t 60 system("shutdown - s - 阅读全文
posted @ 2022-03-26 12:28
zzy_C
阅读(37)
评论(0)
推荐(0)
|
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> int main() { char input[20] = { 0 }; //shutdown -s -t 60 system("shutdown - s - 阅读全文
posted @ 2022-03-26 12:28
zzy_C
阅读(37)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> int main() { again: printf("hello \n"); goto 阅读全文
posted @ 2022-03-26 11:30
zzy_C
阅读(40)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> void menu() { printf("*******************\n") 阅读全文
posted @ 2022-03-26 11:25
zzy_C
阅读(218)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { //乘法口诀表 //1*1=1 //2*1=2 2*2=4 //3*1=3 3*2=6 3*3=9 int i = 0; for (i 阅读全文
posted @ 2022-03-26 08:42
zzy_C
阅读(138)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { //求最大值 求10个整数中的最大值 int arr[] = {-20,-2,-3,-4,-10,-6,-12,-8,-9,-5}; i 阅读全文
posted @ 2022-03-25 17:54
zzy_C
阅读(88)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { //分数求和 1/1-1/2+1/3-1/4+1/5......+1/99-1/100的值,打印出结果 int i = 0; doubl 阅读全文
posted @ 2022-03-25 17:25
zzy_C
阅读(202)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { //编写程序数一下 1到100的所有整数中出现多少个数字9 int i = 0; int count = 0; for (i < 1; 阅读全文
posted @ 2022-03-25 17:09
zzy_C
阅读(87)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { int i = 0; int count = 0; for (i = 101; i <= 200; i+=2) { //判断i是否是素数 阅读全文
posted @ 2022-03-25 16:00
zzy_C
阅读(46)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { //打印1000-2000的闰年 //1.能被4整除并且不能被100整除是闰年 //2.能被400整除是闰年 int year = 0; int count = 0; f 阅读全文
posted @ 2022-03-24 18:29
zzy_C
阅读(61)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int main() { //最大公约数 //辗转相除法 int m = 24; int n = 18; int r = 0; while (m % n) { r = m % n; m = n; 阅读全文
posted @ 2022-03-24 17:32
zzy_C
阅读(34)
评论(0)
推荐(0)
|