Set variable i equal to zero Declare variable count While i is less than ten Print i Add one to the previous value of i and repeat While count is less than ten Print count Add one to the previous value of count and repeat