For Loops in Java CodeHS

2.9.2.

Why do we use for loops in Java?



Write a loop that will print "ouch" 5 times

 

2.9.3. Change this code to print 100 *'s on a single line (test in CodeHS)

        for(int i = 0; i < 10; i++)
        {
            System.out.println(i);
        }

2.9.6. Write a complete program, including appropriate comments to print out a count down from 50 to 40 using a for loop





2.9.6. Write a complete program, including appropriate comments to print out all the even numbers from 10 to 20 inclusive using a for loop



2.9.10 Modify the for loop sum program to read 10 numbers from the keyboard and calculate their sum. Use the constants. (Don't forget section 3 was about User Input)