You are viewing a single comment's thread. Return to all comments →
and just for beauty: assign the your value x -> a, thereby removing this value from the output.
int result=a; for(int k=0;k<n;k++){ result=(int)Math.pow(2,k)*b + result; System.out.print(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 →
and just for beauty: assign the your value x -> a, thereby removing this value from the output.