Minggu, 17 Maret 2013

Another way to create a branching is to use
switch keyword. By using a switch we can do
branching with diverse requirements.

Shape switch,

switch (switch_expression) {
case_selection1 case:
statement1; / / block 1
break;
case_selection2 case:
statement1; / / block 2
break;
default:
statement1; / / block n
break;
}

0 komentar:

Posting Komentar