A good answer might be:Yes, it certainly would. |
For Statement
Java (and serveral other languages) have a The initialize, test , and change are statements or expressions that (usually) perform the named action. The loopBody can be a single statement or a block statement. Here is an example of afor ( initialize ; test ; change ) loopBody ; for statement:
The variable count is the loop control variable. (A loop control variable is an ordinary variable used to control the actions of a looping structure.) It does the same thing as this loop built using a// initialize test change for ( count = 0; count < 10; count++ ) System.out.print( count + " " ); while statement:
Remember that the statement count++ means the same
as count = count + 1.
|
QUESTION 3:What is the output of either loop? Click Here after you have answered the question |