i know how to calculate x^n using a loop, but that doesn't work with negative exponents. how is it done with n < 0 ?

Printable View

- 03-21-2010, 12:37 PMGPBcalculating exponents
i know how to calculate x^n using a loop, but that doesn't work with negative exponents. how is it done with n < 0 ?

- 03-21-2010, 12:41 PMJosAH
- 03-21-2010, 12:44 PMGPB
Ah yeah, thanks!