why you use while loop?



In this place I think you use if condition that will work properly because you only check the variable is greater than the value or not.So you this code ,


I hope...