Sequence and selection control structure - Programming for absolute beginners #1

preview_player
Показать описание
Sequence and selection control structure are two out of the 3 basic control structure of structured programming.
The sequence control structure is the straight forward execution of one processing step after another.
so if you have some statements like this in your code:
statement a
statement b
statement c
this follow in a sequence, once statement a finishes executing, control goes to the next line which is statement b. Once statement b finish executing, control goes to statement c and so on, in a sequence.
But it may not follow so for this code below:
statement a
if statement a is true
statement b
end if
statement c
Notice that in the code above statement a, statement b and statement c are not necessarily in a sequence. This is true because if statement a does not hold true, execution will not go to statement b; instead execution will skip the if block and arrive at statement c.
So this is all there is about sequence control structure.
In this video class, you will solidify your knowledge of sequence and selection control structure.
Рекомендации по теме
join shbcf.ru