fart said:you're insane
fart said:you're insane
Ferrio said:Code:int power(int m, int n) { if (n [b]<=[/b] 0) { return 1; } return power(m, n-1)*m; }
SteveMeister said:Safety check.
fart said:you're insane
NotMSRP said:You don't have to worry about integers/float/doubles in Scheme.
teh_pwn said:Don't know why your teacher is asking you to do that with recursion...terribly inefficient. A for loop would do, and there might even be a way to do it with bit shifting...
teh_pwn said:Don't know why your teacher is asking you to do that with recursion...terribly inefficient. A for loop would do, and there might even be a way to do it with bit shifting...
teh_pwn said:Don't know why your teacher is asking you to do that with recursion...terribly inefficient. A for loop would do, and there might even be a way to do it with bit shifting...
teh_pwn said:Don't know why your teacher is asking you to do that with recursion...terribly inefficient. A for loop would do, and there might even be a way to do it with bit shifting...