previous | start | next

Self Check

  1. Rewrite the for loop in the waitYears method as a while loop
  2. How many times does the following for loop execute?
    for (i = 0; i <= 10; i++)
    System.out.println(i * i);

previous | start | next