Integer accum = 0 Void function accumulate(): while (int_lt(accum, 1000)): accum = accum + 1 output(accum)