System.out.println("starting..."); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package chapter6number49; /** * * @author Student */ import java.util.Scanner; public class Chapter6Number49 { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner scan = new Scanner (System.in); // Chapter 6, Number 49 System.out.println("Please input a number between 1 and 10."); int number = scan.nextInt(); var count = 1; while (count <= number) { System.out.println("Hello World!"); count++; } } }