Assignment #63 and Counting with a while loop

Code

///John Mulligan
///period 5
///Program Name: CountingWhile
///File Name: CountingWhile.java

import java.util.Scanner;

public class CountingWhile
{
    public static void main( String[] args)
    {
        Scanner bot = new Scanner(System.in);
        
        System.out.println("Type in a message, and Ill display it several times.");
        System.out.println("Message: ");
        String msg = bot.next();
        
        System.out.println("How many times?");
        int num = bot.nextInt();
        
        int n = 0;
        while ( n < num )
        {
            System.out.println(10*(n+1) + ". " + msg );
            n++;
        }
    }
}