纯css打造立体时钟
  • 12
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
By_jie

1.while循环实现打印1到10

while循环实现打印1到10

/**
 * [说明]:while循环实现打印1到10
 * @author aeon
 */
public class TestWhile {
    public static void main(String[] args) {
        int i = 1;// 变量初始化
        while (i <= 10) {// 条件
            System.out.println(i++);// 循环体及迭代
        }
    }
}

结果截图:

  

 

posted @ 2018-10-21 21:29  1024军团  阅读(1590)  评论(0编辑  收藏  举报