coursework/cw04.tex
changeset 598 278b8b05f286
parent 567 a48605bdf467
child 607 d58013f17af8
equal deleted inserted replaced
597:9a35b8e67b83 598:278b8b05f286
   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}.