Hello

So I need a while loop, what I have are some fields:

An integer x, another integer b, a maximum limit, and a minimum limit (all ints).

What I need to do is:

When x is smaller than the minimum limit, I need to multiply x by 6, and add 2 to the integer b. I need to keep doing this, until x is between the minimum and maximum limits, then stop and print out the number.

I am confused how to do this.

What I have so far is this:

I don't know how to make it stop when it's big enough though.Code:`while(x < minimum) {`

x = x*6;

b = b + 2;

}

Any help would be much appreciated