/*

  0  1  2  3  4  5

  1  2  3  4  5  6

  2  3  4  5  6  7

  3  4  5  6  7  8

  4  5  6  7  8  9
 
  5  6  7  8  9 10

*/

public class AdditionTable {

  public static void main(String[] args) {

    //Create the table
  
    final int MAX = 6;  //Numbers 0 - 5
    
    int[][] table = new int[MAX][MAX];
    
    
    for (int i = 0; i < MAX; i++)
    
      for (int j = 0; j < MAX; j++)
      
        table[i][j] = i + j;
	
    //Print it out

    for (int i = 0; i < MAX; i++) {
    
      for (int j = 0; j < MAX; j++) {
      
        if (table[i][j] < 10)
          System.out.print("  " + table[i][j]);
	else
	  System.out.print(" "  + table[i][j]);
	  
      }
      System.out.println();
    }
  }
}