You are viewing a single comment's thread. Return to all comments →
int x=0; for(int j=0,k=0;j<n && k<=n-1;j++,k++){ x=(int)Math.pow(2,k)*b + x; System.out.print(a+x+" ");
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 →