Java Loops II

  • + 14 comments

    for (int j = 0; j < n; j++) { a += b; System.out.print(a + " "); b *= 2; } System.out.println();