摘要: 1、 #include <stdio.h> int main(void) { int i; puts("please input a month."); printf("month i: "); scanf("%d",&i); if (i >= 3 && i <= 5) { printf("%d i 阅读全文
posted @ 2020-12-27 23:49 小鲨鱼2018 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1、最大值 #include <stdio.h> int main(void) { int a,b,c,d,m; puts("please input four integers."); printf("a = "); scanf("%d", &a); printf("b = "); scanf(" 阅读全文
posted @ 2020-12-27 20:07 小鲨鱼2018 阅读(2217) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int i,j; puts("please input two integers."); printf("i: "); scanf("%d",&i); printf("j: "); scanf("%d",&j); prin 阅读全文
posted @ 2020-12-27 19:12 小鲨鱼2018 阅读(7713) 评论(0) 推荐(0) 编辑
摘要: 1、最大值 #include <stdio.h> int main(void) { int a,b,c,d,m; puts("please input four integers."); printf("a = "); scanf("%d", &a); printf("b = "); scanf(" 阅读全文
posted @ 2020-12-27 18:06 小鲨鱼2018 阅读(4960) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int i,j; puts("please input two integers: "); printf("i: "); scanf("%d",&i); printf("j: "); scanf("%d",&j); if 阅读全文
posted @ 2020-12-27 17:29 小鲨鱼2018 阅读(1872) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int i; puts("please input a integer: "); printf("i: ");scanf("%d",&i); if (i > 0) if(i % 2 == 0) printf("even: 阅读全文
posted @ 2020-12-27 16:43 小鲨鱼2018 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 1、else悬挂 #include <stdio.h> int main(void) { int i; puts("please input a integer."); printf("i: ");scanf("%d",&i); if (i > 0) puts("++++"); if (i == 0 阅读全文
posted @ 2020-12-27 15:39 小鲨鱼2018 阅读(194) 评论(0) 推荐(0) 编辑