You are viewing a single comment's thread. Return to all comments →
int A = 5; int B = 3; int loop = 5;
int tempAnswer = A; for (int j = 0; j < loop; j++) { tempAnswer += (int) (Math.pow(2.0, j) * B); System.out.print(tempAnswer + " "); }
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 →
int A = 5; int B = 3; int loop = 5;