上一页 1 ··· 337 338 339 340 341 342 343 344 345 ··· 375 下一页
摘要: 1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); while (i >= 1) { printf("%d.\n", i); 阅读全文
posted @ 2021-01-05 11:34 小鲨鱼2018 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int sum = 0; int counts = 0; int label; do { int i; puts("please input an integer."); printf("i = "); scanf("%d 阅读全文
posted @ 2021-01-05 00:10 小鲨鱼2018 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int a,b; puts("please input two integers."); printf("a = "), scanf("%d", &a); printf("b = "), scanf("%d", &b); 阅读全文
posted @ 2021-01-04 14:56 小鲨鱼2018 阅读(2303) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int label; int sum = 0; int counts = 0; do { int i; puts("please input the number i."); printf("i = "); scanf(" 阅读全文
posted @ 2021-01-04 14:07 小鲨鱼2018 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int i; do { puts("please input value of i (0/1/2)"); printf("i = "); scanf("%d", &i); } while (i < 0 || i > 2); 阅读全文
posted @ 2021-01-04 13:09 小鲨鱼2018 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int x; do { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i % 2 == 0) puts("eve 阅读全文
posted @ 2021-01-04 11:46 小鲨鱼2018 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i % 3 == 0) puts("can be devided" 阅读全文
posted @ 2021-01-03 23:40 小鲨鱼2018 阅读(915) 评论(0) 推荐(0) 编辑
摘要: >>> tag = True >>> test1 = {} >>> type(test1) <class 'dict'> >>> while tag: name = input("please input your name: ") mountain = input("which mountain 阅读全文
posted @ 2021-01-02 19:46 小鲨鱼2018 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1、 >>> test1 = ["aa","bb","aa","cc","aa","cc","dd","ee"] >>> test1 ['aa', 'bb', 'aa', 'cc', 'aa', 'cc', 'dd', 'ee'] >>> "aa& 阅读全文
posted @ 2021-01-02 19:10 小鲨鱼2018 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1、 >>> a = {} >>> while a != "quit": a = input("please input an incredient:") if a != "quit": print(f"{a} will be added!!") please input an incredient 阅读全文
posted @ 2021-01-02 14:28 小鲨鱼2018 阅读(87) 评论(0) 推荐(0) 编辑
上一页 1 ··· 337 338 339 340 341 342 343 344 345 ··· 375 下一页