I\'m writing this code for class, but for some reason even after I reach the limit of the loop the code keeps running infinitely hoping someone can see why it is doing that. msg