Assignment #110

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: multiples
    ///File Name: multiples.java
    ///Date: 5/2/16
    
    
    
    import java.util.Scanner;

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



    

Picture of the output

Assignment 110