| a b oldR r oldS s oldT t |
a := 99. b := 78.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
{((oldS * a) + (oldT * b)) = oldR.
 (a \\ oldR) = 0. (b \\ oldR) = 0}
