This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 21
October 8, 1997
#1. Show the output of execution of the following code segment. ( 6 points )
int k;
int m = 3;
while ( m <= 5 )
{
k = 3;
while ( k > 0 )
{
System.out.println("m = " + m + " and k = " + k);
k = k - 1;
}
m++;
}
#2. Draw a flowchart for the code in question #1. ( 4 points )