You are viewing a single comment's thread. Return to all comments →
I didn't need to call the Math.pow() function.
I used
for(x = 0; x < n; x++) { result = a; for(h = 0; h <= x; h++) result += (1<< h) * b; if ( x > 0) System.out.printf(" "); System.out.printf("%d", result); } System.out.printf("\n");
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 →
I didn't need to call the Math.pow() function.
I used