switch (variable) { case value: statement(s); break; case value: statement(s); break; etc. default: statement(s); }Note that if you leave out the break statement, execution continues at that point. The default is executed if none of the cases match.
Click here to return to the IT 108 page