For loop - example
Trace the execution of the “for loop” specified.
j = 10;
for (i = 0; i < 3; i++)
{
System.out.println (“i = “ + i + “j = “ + j);
j = j - 2;
}
Previous slide
Next slide
Back to first slide
View graphic version