This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 18
October 1, 1997
#1. What is printed by the following program? Show the results exactly as they will appear. ( 10 points )
import ccj.*;
public class quiz18;
{
public static void main (String[ ] args)
{
int y = 3;
while (y < 30)
{
if ( y % 2 == 0 )
{
}
else
{
}
System.out.println ("y = " + y );
}
public static int subProg (int s)
{
}
}
}