Try using examples. For instance, if N=5, 2^5=32 and 32>n. It would work for a negative number too. If N=-2, 2^-2=1/4 and 1/4>-2. It works for zero. If N=0 then 2^0=1 and 1>0. SO if it works for positive numbers, negative numbers, and zero it should work, right? That's the way I would do it. There is probably a better way to do it.
|