PsuedoCode

 

If..ElseIfEndIf

 

 

 

When there are more than two possible actions to take we sometimes use a serial if statement.

 

          Input Age

 

If Age < 6 then

        School = “Preschool”

ElseIf Age < 14

        School = “Elementary”

ElseIf Age < 18 then

        School = “Secondary”

Else

        School = “Post secondary”

End If

 

Report School