Exiting a loop
•
In Modula 2 :
EXIT
•
The Java
break
statement
–
while (Lives>0) {
–
/* play game */
–
if (Cookiemonster.strikes)
break
;
–
/* play game */
–
}
•