Zebra0.com

java loopsMultiply to generate power of 2

Multiply to generate power of 2

In this example, multiply the value of the variable instead of incrementing or decrementing.