1.请描述while语句的执行流程
while语句的语法格式如下:
while(表达式){
语句块
}
2.指出下列程序运行后的情况
public static void main(String[] args){
int count=0;
while(count<5){
System.out.print(count+" ");
count++;
}
}
3.指出下列代码运行后的结果
public static void main(String[] args){
int count=10;
do{
System.out.print(count+" ");
count++;
}while(count<5);
}
4.请简述while语句和do-while语句的区别
5.请简述for语句的执行流程
for语句的语法格式如下:
for(表达式1;表达式2;表达式3){
语句块
}
6.指出下列代码,for循环的各个表达式是否正确
public static void main(S