/*********************************************************************
 * Name:
 * NetID:
 * Precept:
 * 
 * Description: Prints the integers from 100 to 200, 5 per line.
 **********************************************************************/

// Debugging exercise! This version also had a runtime problem -- it's
// missing output!

public class BuggyFivePerLine4 { 
    public static void main(String[] args) { 
        int i;

        // print integers from 100 to 200, 5 per line
        for (i = 100; i >= 200; i++) {
            for (int j = 0; j < 5; j+=1) 
                System.out.print(i +  j + " ");
           
            System.out.println();
        }
        System.out.println(i);
    }
}

// Once you've finished all four exercises, write another version of
// this program that uses one for loop and one if statement. Debug
// it yourself. Hint: use % (see Exercise 1.3.8).