First of all, thank you for the A2A. Secondly, the set of whole numbers begins from 0 and stretches till infinity. Thus range of first n whole numbers would always be [0,(n-1)] , i.e. zero to n-1. read more