13.07.2015 Views

A practical introduction to Pascal programming language - GIARA

A practical introduction to Pascal programming language - GIARA

A practical introduction to Pascal programming language - GIARA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Alternative constructions...[Precedent code]case ( int or char expression ) ofvalue1 :Instruction Block 1value2 :Instruction Block 2...valueN :Instruction Block Nend[Following code]......[Precedent code]case ( int or char expression ) ofvalue1 :Instruction Block 1value2 :Instruction Block 2...valueN :Instruction Block NelseInstruction Block Xend[Following code]...[Precedent code]❄Computing expression=value1=value2=valueN✛❄[Following code](a) Case-of clause[Precedent code]❄Computing expression✲✲✲Instruction Block 1Instruction Block 2 =value1=value2=valueN❄[Following code]✲✲✲✲Instruction Block NInstruction Block 1Instruction Block 2 Instruction Block NInstruction Block X(b) Case-of clause with else statementFigure 2.2: Schematic representation of the case-of-else constructions.21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!