a = 3 b = 0 while a > 0 b = b + a a = a - 1 done