Name: Anonymous 2012-01-31 21:11
hello /prog/, yes this is basically homework help...
I have a C function that computes the eth power of a number x, modulo another number m, where e is very large. The function uses recursion to do so. I need to implement the program using iteration. I've attempted it and i'm really stuck here, i provided both functions in this paste: http://pastebin.com/ayb87BBr
can someone please point out my stupid mistakes?
I have a C function that computes the eth power of a number x, modulo another number m, where e is very large. The function uses recursion to do so. I need to implement the program using iteration. I've attempted it and i'm really stuck here, i provided both functions in this paste: http://pastebin.com/ayb87BBr
can someone please point out my stupid mistakes?