Monday

This week will be focused on Java basics

Read and solve the exercises found in loops

Peer instruction

Exercise 1

What will the following code output?

int i;
for(i=6; i<=10;i++);  
System.out.println(“i is ” + i);
  1. i is 6

  2. i is 9

  3. i is 10

  4. i is 11

  5. Will not compute

Last updated

Was this helpful?