// Print a table of the sum of two die rolls, M.S. Branicky, 09/18/2007

public class DieSums {
  public static void main (String[] args) {
    
    int i, j;
    
    System.out.println("\t 1 \t 2 \t 3 \t 4 \t 5 \t 6 ");
    System.out.println("\t---\t---\t---\t---\t---\t---");
    for (i=1; i<=6; i++) {
      System.out.print(i+" | ");
      for (j=1; j<=6; j++) {
        System.out.print("\t " + (i+j));
      }
      System.out.println();
    }
  }
}
