Nested Loops #116 ( Multiply all))

Code

/// Name: Amir Salehi
/// Period: 7
/// Program Name: Getting Individual Digits
/// File Name:GID.java
/// Date Finished: 5/2/2016

    
    public class GID
    {
        public static void main( String[] args )
        {
            System.out.println();
            
            int x, y;
            
            for ( x = 1; x <= 9; x++ )
            {
                for ( y = 0; y <= 9; y++ )
                {
                    int n = x + y;
                    
                    System.out.println( x + "" + y + ", " + x + "+" + y + " = " + n );
                }
            }
            
            System.out.println();
        }
    }  
    





    

Picture(s) of the output

Assignment 7

Back to Homepage