# HG changeset patch # User Christian Urban # Date 1418219886 0 # Node ID 0c43ef11e086afb81a9aeb7a38ee2ad299c2533d # Parent e7b110f9369785cbab0346a7def41fee010b09b4 added diff -r e7b110f93697 -r 0c43ef11e086 coursework/cw04.pdf Binary file coursework/cw04.pdf has changed diff -r e7b110f93697 -r 0c43ef11e086 coursework/cw04.tex --- a/coursework/cw04.tex Sat Dec 06 18:50:58 2014 +0000 +++ b/coursework/cw04.tex Wed Dec 10 13:58:06 2014 +0000 @@ -74,11 +74,12 @@ Fibonacci and Factorial programs. Both should be so modified that a user can input on the console which Fibonacci number and which Factorial should calculated. The Fibonacci program -is given in Figure~\ref{fibs}. +is given in Figure~\ref{fibs}. You can write your own program +for calculating factorials. \begin{figure}[t] \lstinputlisting[language=while]{../progs/fib.while} -\caption{The Fibonacci program in the WHILE language.} +\caption{The Fibonacci program in the WHILE language.\label{fibs}} \end{figure} \subsection*{Question 2 (marked with 5\%)}