Friday, 16 November 2012

Switch Statement

Syntax of switch statement:

switch (expression)
{
case valueOne:
statement; break;
case valueTwo:
statement;
break;......
......
......
......
......
case valueN:
statement;
break;
default:
statement;
}

Flow Diagram:


No comments:

Post a Comment