Assignemnt #110 and Displaying Some Multiples

Code

/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Displaying Some Multiples
/// File Name: DisplayingSomeMultiples.java
/// Date Finished: 5/4/2016

import java.util.Scanner;
public class DisplayingSomeMultiples
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        int num;
        
        System.out.print("Choose a number: ");
        num = keyboard.nextInt();
        
        for( int n = 1; n <= 12; n++ )
        {
            int number = n * num;
            System.out.println(num + "x" + n + " = " + number);
        }
    }
}
    

Picture of the output

Assignment 8