第五章 循环结构

          第五章  循环结构

英语新识:

while  循环    do  执行    index  牵引    bug  错误    debug  调试

equal  相等    step  步骤    error  错误

 

 

 

结构框图:

 

 

 

语法新知:

一:

while:

int num=0;

while(  i<4){

System.out.println(" ");

i++;

 

}

二:

do-while:

do{

System.out.println (" ");

}while(!"y".equals(answer));

 

 

 

 

注:

1.确实的赋值

2.{ }的范围确定
3." i"值的改变 //先执行,后判断.

posted @ 2017-04-09 16:38  MerryCell  阅读(101)  评论(0编辑  收藏  举报