To work with CASE function
Step 1
Description:
The case statement consists of an expression (the selector) and a list of statements, each prefixed with a case.
Declaration:
case expression of
case: statement;
...
case: statement;
end
Example:
case a of
'm': Writeln('You are the boy');
'f': Writeln('You are the girl');
end;
No comments:
Post a Comment