正在加载图片...
Syntax for the while statement while( <boolean expression> <statement> Boolean Expression while(: number < 100 ··················································· 。sum sum number Statement (loop body) ∵ number number 1 C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 7-4© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 7 - 4 while ( number <= 100 ) { sum = sum + number; number = number + 1; } Syntax for the while Statement while ( <boolean expression> ) <statement> Statement (loop body) Boolean Expression
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有