Getting Started
In most cases, the code skips the
if
statement and simply prints the argument.
However, when the
if
statement finds the words
CONT
or
BREAK
in the input val-
ues, it performs one of these two tasks:
»
continue
: Forces the loop to continue from the current point of execution
with the next entry in VarArgs.
»
break
: Stops the loop from executing.
The keywords can appear using any combination of uppercase and lowercase let-
ters, such as ConT, because the
upper()
function converts them to uppercase. The
DisplayMulti()
function can process any number of input strings. To see it in
action, type DisplayMulti('Hello', 'Goodbye', 'First', 'Last') and press Enter. You
see each of the input strings presented on a separate line in the output. Now type
Do'stlaringiz bilan baham: |