/* jack newsom period 5 program Digits filename Digits.java date completed 11/13/2015 */ public class Digits { public static void main( String[] args ) { for ( int num1 = 10; num1 <= 90; num1 = num1 + 10 ) { for ( int num2 = 0; num2 <= 9; num2 = num2 + 1 ) { int actualNum = num1+num2; int firstDigit = num1/10; int sum = firstDigit + num2; System.out.println( actualNum + ", " + firstDigit + "+" + num2 + " = " + sum ); } } } }