You are here

Selection Control Structures

6 February, 2015 - 12:27

Example 10.3: pseudocode: If then Else

If age  > 17  Display a message indicating you can vote.Else  Display a message indicating you can't vote.Endif

Example 10.4: pseudocode: Case

Case of age  0 to 17 Display "You can't vote."  18 to 64 Display "You're in your working years."  65 + Display "You should be retired."Endcase