摘要: 【火箭发射倒计时】 #include <stdio.h> int main (void) { int count = 100; while (count > 0) { printf("%d \n",count);// a count--; //b } printf("发射!\n"); //当我们想要 阅读全文
posted @ 2021-04-21 14:46 RetenQ 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 【概述】 一般认为,循环由三个最基本的部分构成:判断条件,执行步骤,更新参数 利用循环,我们可以完成一些“在某些条件下不断执行”的操作,循环包括while,do-while,以及for 其中while的两个比较易于理解,不过熟练后还是for更舒服且用得多。三种循环各有各自的功能,不分好坏 【whil 阅读全文
posted @ 2021-04-21 14:29 RetenQ 阅读(220) 评论(0) 推荐(0) 编辑