Site hosted by Angelfire.com: Build your free website today!

N(P)R

(Back)
Email the author:REGGIE


If you need an explaination on how this works check the explaination in my factorial program. If you are still confused email me. The '=>' is STO. Basically, the program will solve N(P)R with a higher value of N and R than will the built in one on the calculator.

Print "N(P)R"
Input N
Input R
N-1+R=>Z
N=>B
0=>U
Label F
If B>10Goto P
If N=ZGoto E
B*(N-1)=>B
N-1=>N
If B>10Goto P
Goto F
Label P
B/10=>B
U+1=>U
Goto F
Label E
Print B
If U=0Goto L
Print "*10 TO THE EXPONENT"
Print U
Label L
End