define i as an int and set it to 0 define count as an int while i is less than 10 display add 1 to int for setting count to 0, count is less than 10, add 1 to count display count