Assignment #116 Getting Individual Digits

Code

    /// Name: John Huh
    /// Period: 6
    /// Program Name: Getting Individual Digits
    /// File Name: Individual.java
    /// Date Finished: 4/22/2016
    
    import java.util.Scanner;
    
    public class Individual
    {
    	public static void main( String[] args ) throws Exception
    	{
            
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println();
            
    		for ( int x=1; x<=9; x++ )
            {
                for ( int y=0; y<=9; y++ )
                {
                    int z = x+y;
                    System.out.println( x + "" + y + ", " + x + "+" + y + " = " + z ); 
                }
            }
            System.out.println();
        }
    }
    

Picture of the output

Assignment 1