for int k 3 k

for (int k = 3; k <= 8; k++)

what is the System.out.println

Solution

As no question is specified, let me explain what this particular loop does:

The variable k is known as the loop variable, it will be accessible only inside the loop as it has been declared in the for statement

This loop variable k will be initialized to 3.

For every iteration, the value of k will be increased by 1. And this will continue till k becomes 8. Then the loop will terminate.

Hence, whatever statement we write below this loop, will be executed those many number of times.

for (int k = 3; k <= 8; k++) what is the System.out.printlnSolutionAs no question is specified, let me explain what this particular loop does: The variable k

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site