I'm a total rookie on programming and just taught myself using different Tutorials and I don't care so much about running time or efficiency - I'm just happy if it works. Really thankful for all the help you guys give me!I've been trying to write a program for Euclids Algoritm to find GCD of two numbers (greatest common divisor) on my TI-83.

I've been trying to use both While and Goto without success. Probably I've done s.t. really stupid ;) This is kinda what the program that I wrote looked like:

```
Prompt A, B (where A is bigger than B)
fpart(A/B)*B→ R
If R=0
Then
Disp B
Else
While R>0
fPart(A/B)*B→ R
B→A
R→B
End
Disp A
```

I also tried with Lbl and GoTo

```
Prompt A, B (where A>B)
Lbl C
fPart(A/B)*B→R
If R=0
Then
Disp B
Else
B→ A
R→ B
Goto C
```