Java Reference
In-Depth Information
The output from the program is shown here:
Notice that the
while
loop executes only when
e
is greater than 0. Thus, when
e
is zero, as
it is in the first iteration of the
for
loop, the
while
loop is skipped.