Here's the question you clicked on:
cathyangs
Does anyone know TI BASIC programming? I need help fixing in a glitch in this program ClrHome Input"1st Numger", X Input"2nd Number", Y 1->Z While Z=1 abs(x-y)->A If X<Y then A->Y end If y<x then a->x end If x=y then Disp "GCF=",X 2->Z end End Stop
Which model? Your code: http://ideone.com/jdKbU Your code's syntax is fine, but... Python reproduction: http://ideone.com/ks5Pv The algorithm might be incorrect. Here's euclid's algorithm for the gcf, implemented in the TI-89: http://ideone.com/NmnGD