15.使用while循环

package cn.jbit.loops1;

import java.util.Scanner;

public class WhileDemo {

    /*
     * 如何使用while循环
     */
    public static void main(String[] args) {
        int count = 1;
            while(count <= 50){
                System.out.println("打印第" +count+ "份试卷");
                count++;
            }
        }
}
原文地址:https://www.cnblogs.com/xiaotaoxu/p/5536287.html