You are viewing a single comment's thread. Return to all comments →
for (int j = 0; j < n; j++) { int result = a; for (int g = 0; g <= j; g++) { result += Math.pow(2, g) * b; } System.out.print(result + " "); } System.out.println();
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all comments →