in which the counter of the loop counts between two different non zero numbers