Okay, so here is the situation:
I am trying to put on a program I found on the internet for Euclid's Algorithm, but I am having trouble.
I have a Casio fx-9750G PLUS Graphics Calculator.
Here is the code I am using:
__________________________________________
'GCD'
"NUM 1"
?->A
"NUM 2"
?->B
1->C
Lbl 1
Int(A-B)->D
A-BxInt(A-B)->C
C=0=>Goto 2
B->A
C->B
Goto 1
Lbl 2
B
_______________________________
The calculator has a math error, and points me to this section:
A-BxInt(A-B)->C
Can someone please help me? I can't figure out what to change!
Thanks very much,
Chris
Help Entering A Program Please!
Started by
Chris14
, Apr 30 2008 04:06 AM
3 replies to this topic
#1
Posted 30 April 2008 - 04:06 AM
#2
Posted 07 May 2008 - 11:21 PM
A-BxInt(A-B)->C
Hello Chris14 and welcome to the UCF!
The problem is the subtraction within Int. It should be instead a division sign. So it should look like this:
A-B ×' /> Int(A B )->C
#3
Posted 13 May 2008 - 07:22 PM
Thank you SO much kucalc! Really appreciated!!!! :-)
#4
Posted 13 May 2008 - 11:26 PM
Heh, no problem.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users