creates hash from 1 to 10 and ends when 10 products is entered or nothing is entered