/* Helene Martin, Garfield AP CS, 2009
   Demonstrates for loop usage
*/
public class LoopTest {
	public static void main(String[] args) {
		// Loop counter doesn't have to be used in body
		for(int i = 1; i <= 200; i += 2) {
			System.out.println("hello");
		}
		
		// Loop can count down
		for(int i = 10; i >= 1; i--) {
			System.out.print(i + " ");
		}
		System.out.println ("Blastoff");
		
		// Can use simple loops to print out more complex patterns
		for(int i = 1; i <= 5; i++) {
			System.out.print(3 * i + 1 + " ");
		}
	}
}
