Assignemnt #110

Code

    ///Name: Joshua Bautista
    ///Period: 6
    ///Date: 5/9/2016
    import java.util.Scanner;
     
        public class M
        {
            public static void main( String[] args )
            {
                
                Scanner keyboard = new Scanner(System.in);
                int number;
                System.out.println();
                System.out.print( "Choose a number: " );
                number = keyboard.nextInt();
                System.out.println();
                
                 for ( int multiple = 1; multiple < 13; multiple = multiple + 1 )
                {
                    int product = multiple*number;
                    System.out.println( number + "x" + multiple + " = " + product );
                        
                }
                System.out.println();
            }
        }
    

Picture of the output

Assignment 1