Assignemnt #110 Displaying Some Multiples

Code

     ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Displaying Some Multiples
    ///File Name: DSM.java
    ///Date: 5/8/2016
    
import java.util.Scanner;

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

    

Picture of the output

assignment110