Skip to content

For Loop

Counting loops and iteration with the for statement.

package DSA.Flow_control;
public class Forloop {
public static void main(String[] args) {
for (int i = 0; i <= 10; i++) {
System.out.println(i);
}
}
}