public class IndDig { public static void main( String[] args ) throws Exception { for ( int num = 0; num < 10; num++ ) { for ( int num1 = 0; num1 < 10; num1 ++ ) { System.out.println ( num + " and " + num1 + ", " + num + "+" + num1 + " = " + (num+num1)); } } } }