while 循环 do while

public class WHILEdemo{
public static void main(String[] args){
int x = -1;
do{
System.out.println(x);
x++;
} while (x>=0&x<=5);
}
}

 

posted @ 2021-07-19 22:46  测试人员-凯  阅读(41)  评论(0)    收藏  举报