You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( ( a > b ) || ( c == d ) )
{
// Code to be executed.
}
else if ( ( e > f ) && ( g == h ) )
{
// Code to be executed.
}
else
{
// Code to be executed.
}
switch
switch ( expression )
{
case val1:
// Code to be executed.
break;
case val2:
// Code to be executed.
break;
default:
// Code to be executed.
break;
}
Loop Statements
for
for ( i = 0; i < DEF_SIZE; ++i )
{
// Code to be executed.
}
for ( i = 0; i < DEF_SIZE; ++i )
{
// Code to be executed.
if ( a == b )
{
// Only one break expression is acceptable.
break;
}
}
while
while ( loopControl == TRUE )
{
// Code to be executed.
}
do-while
do
{
// Code to be executed.
} while ( loopControl == TRUE );