Assignemnt #114

Code

/// Name: Ryan Volko
/// Period: 7
/// Program Name: Table
/// File Name: Table.java
/// Date Finished: 5/4/2016
import java.util.Scanner;
public class Table
{
	public static void main( String[] args ) throws Exception
	{
        Scanner kb = new Scanner (System.in);
        
        System.out.println("x | 1    2    3    4    5    6    7    8    9");
        System.out.println("==|==========================================");
        
		for ( int y=1; y < 13; y++ )
        {
            System.out.print(y + " | ");
			for ( int x=1; x < 10; x++ )
			{
                int z = x * y;
                System.out.print( z + "\t");
				
				}
            System.out.println("");
			}
    }
		
	} 
 
    

Picture of the output

Assignment 114