正在加载图片...
The while statement int sum =0, number while( number <=100) Sum sum number; These statements are executed as long as number is less than or number= number 1 equal to 100 C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 7-3© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 7 - 3 The while Statement int sum = 0, number = 1; while ( number <= 100 ) { sum = sum + number; number = number + 1; } These statements are executed as long as number is less than or equal to 100
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有