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++; } } }