Assignemnt #110: Displaying Some Multiples

Code

    /// Name: Cassie Rapp
    /// Period: 6
    /// Program Name: Displaying Some Multiples
    /// File Name: DisplayingMultiples.java
    /// Date Finished: 5/3/2016
    
    import java.util.Scanner;
    
    public class DisplayingMultiples {
        
        public static void main(String[] args ) {
            
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println();
            System.out.println( "Choose a number: " );
            int number = keyboard.nextInt();
            System.out.println();
            
            for ( int i=1; i<13; i++ ) {
                int mult = i * number;
                System.out.println( number + "x" + i + " = " + mult );
            }
            
        }
    }
    

Picture of the output

Assignment 110