make money free online
star business online
11:35 PM

Control Structures

Posted by Business

online business to back again ok we explain abaout Control structures
Control structures provide programmers with the tools to build complex programs
capable of evaluating and reacting to the changing values of various inputs
throughout the execution of a program. In summary, these structures control the
execution of a program.

True/False Evaluation

Control structures generally evaluate expressions in terms of true and false. A
particular action will occur based on the outcome of this evaluation. Consider the
comparative expression $a = $b. This expression will evaluate to true if $a in fact is
equal to $b, and false otherwise. More specifically, the expression will evaluate to
the value 1 if it is true, and 0 if it is false. Consider the following:


you see this code

if (expression)
{
statement block
}

and
if (expression)
{
statement block
}
else {
statement block
}

if we to see example $a = $b like :


if($a == $b)
{
do something hire
}

next time online business to explain about looping.

0 comments:

Post a Comment