/**
 * TabularStuff provides a method for displaying some data in tabular
 * form.
 */
public class TabularStuff {

  /**
 * Produce (n/4)+1 lines of output, consisting of
 * n n-2 n-4 n-6 ... n/2
 * n-2 n-4 n-6 ... n/2
 * ...
 * n/2+2 n/2
 * n/2
 * Precondition: n >= 0 && n a multiple of 4
 * @param n The number to begin the upper-left corner of the
 *          triangle from.
 */
  public static void printTriangle(int n) {
    for (int i= n; i >= n/2; i -= 2) {
      for (int j= i; j >= n/2; j -= 2) {
        System.out.print(j + " ");
      }
      System.out.println("");
    }
  }
}

