The for loop:
for (initialization; termination; increment) { statement(s) }
What will be the output of the program below? Copy into BlueJ and run.
/** * A simple "for loop" example. */ class ForDemo { public static void main(String[] args){ for(int i=1; i<11; i++){ System.out.println("Count is: " + i); } System.out.println("The value of i after the loop is: " + i); } }