Assignemnt #116, Getting Individual Digits

Code

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


    

Picture of the output

Assignment 116