/**
* java 循环结构
*/
public class learn_7 {
public static void main(String[] args) {
//whlie
int a = 10;
while (a < 20) {
System.out.println(a);
a++;
}
System.out.println("\n");
//do while
int b = 10;
do {
System.out.println(b);
b++;
}while (b < 10);
System.out.println("\n");
//for
for (int x = 10; x <= 20; x++) {
System.out.println(x);
}
System.out.println("\n");
int [] numbers = {10, 20, 30, 40, 50};
for(int x : numbers ){
System.out.println( x );

}
}
}