go to previous page   go to home page   go to next page hear noise

Answer:

>      // greater-than

Another Example

Here is another program fragment:

int count  = 10;
int inc    = -1;
while ( count  < 100 )   // check the relational operator
{
  System.out.println( "count is:" + count );
  count = ;
}
System.out.println( "count was " + count + " when it failed the test");

How should the assignment statement be completed so that the loop terminates?


QUESTION 10:

Fill in the blank. Be sure to use the variable inc in your answer.


go to previous page   go to home page   go to next page