Assignemnt #110, Displaying Some Multiples

Code

import java.util.Scanner;

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


    

Picture of the output

Assignment 110