Force it into an infinite loop, and if the result is negative, display a message and exit the loop (to avoid wasting resources).
New here? I'm Roha — want a quick tour?
Force it into an infinite loop, and if the result is negative, display a message and exit the loop (to avoid wasting resources).