You are viewing a single comment's thread. Return to all comments →
int res=a; for(int j = 0;j<n;j++){ res += Math.pow(2,j)*b; System.out.print(res+" "); } System.out.print("\n");
Java Loops II
You are viewing a single comment's thread. Return to all comments →