||Department of Engineering
if (i==3) /* checking for equality; `!=' tests for inequality */
/* no braces needed for a single statement */
/*the braces are necessary if the
clause has more than one statement
/* switch is like the case statement in pascal.
The values that the switching variable is compared with
have to be constants, or `default'.
case 1: printf("i is one\n");
break; /* if break wasn't here, this case will
fall through into the next.
case 2: printf("i is two\n");
default: printf("i is neither one nor two\n");