A practical introduction to Pascal programming language - GIARA
A practical introduction to Pascal programming language - GIARA
A practical introduction to Pascal programming language - GIARA
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
A Practical Introduction <strong>to</strong> <strong>Pascal</strong> Programming Language...[Precedent code]❄[Precedent code]for var:=initVal <strong>to</strong> finalVal doInstruction Block[Following code]...var:=var+1✲var:=initVal❄var ≤ finalValtrue❄Instruction blockfalse❄[Following code](a) for structure with <strong>to</strong> clause...[Precedent code]❄[Precedent code]for var:=initVal down<strong>to</strong> finalVal doInstruction Block[Following code]...var:=var-1✲var:=initVal❄var ≥ finalValtrue❄Instruction blockfalse❄[Following code](b) for structure with down<strong>to</strong> clauseFigure 3.1: Schematic representation of the if-then-else constructions36