Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

There are 6 different programs + output required for this assignment. Please Hav

ID: 3676054 • Letter: T

Question

There are 6 different programs + output required for this assignment. Please Have 6 Different snipping photos with programs and outputs. The Class ContDemo in Chapter 3 shows one way to use a for loop to print the even numbers 0 to 100. Write programs that print the same output as that program, but do it in the following ways: Using a for loop that increments the loop control variable by 2 each iteration Using a for loop whose loop control variable goes from 0 to 50. Using a for loop whose loop control variable goes from 100 down to 0. Using an infinite for loop with no conditional expression and exiting the loop with a break statement. Using a while loop. Using a do-while loop.

Explanation / Answer

1, Using While Loop:

}}

2.Using do-while loop:

}}

3.For loop

class ContDemo { public static void main(String args[]) {