Under main set and place i as 0 set count while i is less than 10 output i+1 when count is equal to 0 and less than 10 output count+1