/**
 * NestedLoopDemo
 *
 * Demonstrates the use of nested for loops.
 *
 * Computer Science S-111
 */

public class NestedLoopDemo {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < i; j++) {
                System.out.println(i + " " + j);
            }
            System.out.println("---");
        }
    }
}
