09-16-2024, 07:28 PM
DO
INPUT "Number: ", n!
LOOP UNTIL _KEYDOWN(27)
The loop above can never be terminated because in order to leave the INPUT statement you must press ENTER.
DO
INPUT "Number: ", n!
LOOP UNTIL n! = 0
The loop above can terminate because it relies on the value of n!
INPUT "Number: ", n!
LOOP UNTIL _KEYDOWN(27)
The loop above can never be terminated because in order to leave the INPUT statement you must press ENTER.
DO
INPUT "Number: ", n!
LOOP UNTIL n! = 0
The loop above can terminate because it relies on the value of n!