Zebra0.com

cpp 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.