I cant get the program to loop

what I mean to say is 0 counts as 1