Java_05 whlie

Java_05 whlie

package my;

public class _7while循环 {

	public static void main(String[] args) {
		// while循环
/*		语法格式:
		while (E1)
		{
			S1
		}
		运行规则为:当条件E1成立的时候,执行循环体S1;否则退出循环.*/
		int i =1;
		while (i <= 10)
		{
			System.out.println( i);
			i++;
		}

	}

}

Results of the
Results of the

Published 20 original articles · Like1 · Visits 364

Guess you like

Origin blog.csdn.net/songteng2012/article/details/105699171
05