Translate

Monday, May 5, 2014

7. Flow Control Statement

break statement

break statement for the complete process of the Loop and the code in the next statement or minutes for leaving the Loop.
example
៧. Flow Control Statement

Continue Statement

Continue Statement is a code used to complete the process in the Loop, which is located below it already ongoing process Loop.
example
៧. Flow Control Statement

Switch Statement

Syntax
switch(n)
{
case 1:
execute code block 1
break;
case 2:
execute code block 2
break;
default:
code to be executed if n is different from case 1 and 2
}
example
៧. Flow Control Statement

0 comments:

Post a Comment