关于循环结构的运用,例子练习,break,continue及getDay(),getDate().

1.While

 

2.Do while 

 

Do while会在判断条件前执行一次。

 3.循环的魅力

 

4.breakcontinue

 

continue运用例子:求1-100的偶数和。

 

  1. getDay()

 

  1. getDate()

 

原文地址:https://www.cnblogs.com/JackChenYK/p/7751893.html