0.) C <- INV C 1.) if A < B then (8.) else (5.) 2.) if C == B then (3.) else (2.) 3.) C <- B - A 4.) if A == C then (7.) else (6.) 5.) C <- B - D 6.) B <- 668 7.) if C < D then (0.) else (4.) 8.) D <- D + 1