blog visitors

STRUCTURE runs

STRUCTURE runs
 
Structure that runs
setap instruction will be done one at a time
Executed exactly once, no instructions are repeated or not implemented
Sequence of instructions executed by the same processor as the action sequences are written in the text of the algorithm.
End of the last instruction is the end of the algorithm
If the instructions in the algorithm runs in a row denoted by A1, A2, A3, A4, and A5 aka execution of the instruction is

 


Example:
Pseudocode of an algorithm is as follows:
 
 


Examples of the above algorithm will result in output = 20 whereas in the second algorithm generates output = 10

It is proved that the order of the algorithm will affect the outcome of the process.



 

Source book logika informatika, algoritma dan pemrograman komputer (Heri Sismoro)

0 komentar:

Posting Komentar

Terimakasih Atas Komentarnya semoga berguna demi blog ini