set i to 0 define count while i is less than 10 print i then incerment i for count beginning at 0, while count is less than 10, incrementing count each time print count