Never mind I managed to figure it out.
Since result is set to 1, when the while loop is called the result of one is being constantly multiplied by 2 until the loop has reached the value of 9.
Type: Posts; User: xXBurnt
Never mind I managed to figure it out.
Since result is set to 1, when the while loop is called the result of one is being constantly multiplied by 2 until the loop has reached the value of 9.
Hello everyone,
I was reading a book and came across this while loop.
public class Powers {
public static void main (String [] args){
int e;
int result;