begin main function int i = 0 int count while i < 10 print i and add one to i for count = 0, count less than 10, count +1 print count end main function