You are viewing a single comment's thread. Return to all comments →
can also be removed k<=n-1; and replaced by k < n;
int result=0; for(int k=0;k<n;k++){ result=(int)Math.pow(2,k)*b + result; System.out.print(a+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 →
can also be removed k<=n-1; and replaced by k < n;