package com.huaxin;
/**
* @author wtl
* do-while和while得区别,do-while至少要执行一次
*/
public class DoWhile {
public static void main(String[] args){
/*
int i = 0;
do{
if(i % 2 == 0){
System.out.println(i);
}
i++;
}while(i <= 100);
*/
int j = 20;
do{
System.out.println(j);
}while(j < 20);
while(j < 20){
System.out.println(j);
}
}
}