Assignemnt #63 and loop.java

Code

     /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: Loop
    /// File Name: Loop.java
    /// Date Finished: 1/14/2016
    
    import java.util.Scanner;
    
    public class Loop
    {
    	public static void main( String[] args )
    	{
    		Scanner keyboard = new Scanner(System.in);
    
    		System.out.println( "Type in a message, and I'll display it five times." );
    		System.out.print( "Message: " );
    		String message = keyboard.nextLine();
            int times = 0;
            System.out.print("How many times?: ");
            
            times = keyboard.nextInt();
    
    		int n = 0;
    		while ( n < times )
    		{
    			System.out.println( (n+1)*10 + ". " + message );
    			n++;
    		}
    
    	}
    }
        
        
                   
    

Picture of the output

Assignment 63