all go between the two curly brackets. For every value that you want to check,
then have a pair of curly brackets. The other parts of the switch statement
The variable you want to check goes between the round brackets of switch. You
So you start with the word switch, followed by a pair of round brackets.
else if statements. The structure of the switch statement is this:
of values for your variables. They can be used instead of long, complex if
a switch statement. A switch statement gives you the option to test for a range
Another way to control the flow of your programmes is with something called
Комментариев нет:
Отправить комментарий