Loop wont terminate


this makes no sense, because the won’t terminate


It actually will when the division gives a number less than 1 it will round to 0 as it’s an int hence no decimal


try running the code it will terminate


Its terminates, dry run the code it’s simple. I completed it in less than 20 sec