A computer system allows a factory manager to clock his workers in. He can select 1 to clock in a worker or 0 to exit the program. On a public holiday, he will immediately enter 0 and no information will be processed.
clockin ← USERINPUT
WHILE clockin = 1 DO
count = count + 1
clockin ← USERINPUT
END WHILE
IF count = 0
THEN
OUTPUT "It was a public holiday today."
ELSE
OUTPUT clockin, " workers clocked in today"
ENDIF
Imagine the manager enters 0 before the program enters the WHILE DO loop. What would happen?