the loop will work because outside of the conditions it sets h = 9
if inside the loop the condition is not met (( which is the same as else ))
h is not touched and still 9
but yeah dividing was the best solution.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum