content_image/868263.jpg
Produces as results: 

1 I 2 II 4 IV 8 VIII 16 XVI 32 XXXII 64 LXIV 128 CXXVIII 256 CCLVI 512 DXII 1024 MXXIV 2048 MMXLVIII 4096 MMMMXCVI 

Notice again that each "branch" of an if statement consists of only one statement. Therefore, when more than one action is intended, a compound statement is necessary. 

## 4.E.2 The case statement 

The case statement consists of an expression (the selector) and a list of statements, each being associated with one or more constant values of the type of the selector. The selector type must be an ordinal type. Each constant value must be associated with at most one of the statements. The case statement selects for execution the statement that is associated with the current value of the selector; if no such constant is listed, it is an error. Upon completion of the selected statement, control goes to the end of the case statement. The form is: 

<img src='content_image/868263.jpg'>

