PDA

Click to See Complete Forum and Search --> : power


smileitssonya
Oct 13th, 2008, 01:16 PM
how do i 2 to the power of any exponent WITHOUT using the Math.pow method? :ehh:

ComputerJy
Oct 13th, 2008, 08:57 PM
A for loop, a recursive method, or a bit shifting operation can do it. Depends on what your instructor is expecting.

unsigned left shift would be the best way to go just FYI