摘要:
c语言中continue语句;执行continue语句后,循环体的剩余部分就会被跳过。 例子; 1、原始程序。输出矩形。 #include <stdio.h> int main(void) { int i, j, height, width; puts("please input the heigh 阅读全文
posted @ 2021-04-20 22:37
小鲨鱼2018
阅读(1220)
评论(0)
推荐(0)
摘要:
1、原始程序 #include <stdio.h> int main(void) { int i = 1, j; puts("please input an integer."); do { printf("j = "); scanf("%d", &j); if (j <= 0) puts("the 阅读全文
posted @ 2021-04-20 21:42
小鲨鱼2018
阅读(342)
评论(0)
推荐(0)
摘要:
1、while语句 #include <stdio.h> int main(void) { int i = 1, j; puts("please input an integer."); do { printf("j = "); scanf("%d", &j); if (j <= 0) puts(" 阅读全文
posted @ 2021-04-20 20:19
小鲨鱼2018
阅读(976)
评论(0)
推荐(0)
摘要:
1、while语句 #include <stdio.h> int main(void) { int i = 1, j; puts("please input an integer."); do { printf("j = "); scanf("%d", &j); if (j <= 0) puts(" 阅读全文
posted @ 2021-04-20 19:01
小鲨鱼2018
阅读(394)
评论(0)
推荐(0)
摘要:
将输入的正整数进行逆向输出。 1、while语句 #include <stdio.h> int main(void) { int i, j = 0; puts("please input an integer."); do { printf("i = "); scanf("%d", &i); if 阅读全文
posted @ 2021-04-20 15:37
小鲨鱼2018
阅读(735)
评论(0)
推荐(0)
摘要:
1、while语句 #include <stdio.h> int main(void) { int i = 2, j; puts("please input an integer."); do { printf("j = "); scanf("%d", &j); if (j <= 2) puts(" 阅读全文
posted @ 2021-04-20 13:06
小鲨鱼2018
阅读(165)
评论(0)
推荐(0)