Java Programming Tutorial - for Loops





import java.util.Scanner;
public class Coffee{
public static void main(String arg[]) { 
    for(int counter = 6;counter<=21;counter+=3) {
    System.out.println(counter);
    }
}
}

Comments