2 Feb
2010
2 Feb
'10
9:52 p.m.
On Monday 01 February 2010 11:56:35 Hicham Mouline wrote:
I have written this code to return 2 to the power x.
Just a little confused reading your code; does POWER2(6) give you 64? Or are you trying to produce the sequence 1,2,4,8,16,32,64? If the former, why not simply use the left shift operator? Regards, Ravi