计算机二级c语言 第5章 循环结构(Computer two, C language, the fifth chapter of the cycle structure).doc

计算机二级c语言 第5章 循环结构(Computer two, C language, the fifth chapter of the cycle structure).doc

  1. 1、本文档共13页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
计算机二级c语言 第5章 循环结构(Computer two, C language, the fifth chapter of the cycle structure)

计算机二级c语言 第5章 循环结构(Computer two, C language, the fifth chapter of the cycle structure) This paper consists of and ring Shuaishen st contribution Ppt documents may experience poor browsing on the WAP side. It is recommended that you first select TXT, or download the source file to the local view. The fifth chapter, cycle structure The main points of this chapter: the main points of this chapter The loop structure loop structure 5.1 while statements and while statements with 5.2 DO-WHILE statements and DO-WHILE statements with 5.3 for statements and for statements form the circular structure 5.4 nested loop structure of 5.5 break and the continue statement in the loop body 5.6 example The general form of 5.1.1 while cycles The loop formed by the while statement is also called the loop, and the general form of the While statement is: While (expression) loop statement. Here are a few notes: 1.while is the keyword for the C language. Expressions after 2.while can be any legitimate expression in the C language, usually relational expressions or logical expressions, but can also be other arithmetic expressions. When the value of an expression is zero, the condition is false; when not zero, the condition is true. The 3. loop can be either a simple executable statement or a compound statement. 4. if the value of the expression is 0 when the first calculation, the loop statement is not executed at once. The process skips the While statement directly and executes the next statement. The key tips: loop type while loop in the implementation of key tip: number from 0 to infinity. If the value of the expression is 0 for the first expression, the loop body executes 0 times; if the expression is true, then the loop runs into a dead loop. The execution of the 5.1.2 while loop The execution of the while loop is to calculate the value of the expression after the while, and when the value is nonzero, execute the statement in the loop body. When the value is zero, exit the while loop. Not

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档