大家好,我是电气学院学生第二党支部预备党员高永鑫。在疫情期间我们推出了MS office的考试教程。不忘初心、牢记使命,接下来推出的是计算机二级考试中的C语言备考教程。我们依旧在为同学们提供服务,在学习期间有什么疑问或建议,随时欢迎同学们与我们取得联系。
本期主要内容是:
1、while语句
2、do-while语句
以下是详细的视频讲解。
C语言
while 语句
及运行结果

do-while 语句
及运行结果



总结:
(1)while是先判断条件在执行;
(2)do-while是先执行一次do语句,再判断条件在执行;
下期预告:
1、continue语句
2、break语句

图文来源:学生第二党支部预备党员高永鑫
排版:于瀛
审核:陈金涛老师