coursework/cw04.tex
changeset 598 e3ad67cd5123
parent 567 4573d36d0b2f
child 607 3f4fc76dab2f
equal deleted inserted replaced
597:ce8419e3915c 598:e3ad67cd5123
   155 \;\textit{AExp}\; \code{do} \textit{Block} 
   155 \;\textit{AExp}\; \code{do} \textit{Block} 
   156 \end{center}
   156 \end{center}
   157 
   157 
   158 \noindent The intended meaning is to first assign the variable
   158 \noindent The intended meaning is to first assign the variable
   159 \textit{Id} the value of the first arithmetic expression, test
   159 \textit{Id} the value of the first arithmetic expression, test
   160 wether this value is less or equal than the value of the
   160 whether this value is less or equal than the value of the
   161 second arithmetic expression. If yes, go through the loop, and
   161 second arithmetic expression. If yes, go through the loop, and
   162 at the end increase the value of the loop variable by 1 and
   162 at the end increase the value of the loop variable by 1 and
   163 start again with the test. If no, leave the loop. For example
   163 start again with the test. If no, leave the loop. For example
   164 the following instance of a \code{for}-loop is supposed to
   164 the following instance of a \code{for}-loop is supposed to
   165 print out the numbers \pcode{2}, \pcode{3}, \pcode{4}.
   165 print out the numbers \pcode{2}, \pcode{3}, \pcode{4}.