updated
authorChristian Urban <christian.urban@kcl.ac.uk>
Tue, 28 Nov 2023 11:45:48 +0000
changeset 957 34b3aeb65fbe
parent 956 ae9782e62bdd
child 958 fddf099a82f8
updated
hws/hw01.pdf
hws/hw02.pdf
hws/hw03.pdf
hws/hw04.pdf
hws/hw05.pdf
hws/hw06.pdf
hws/hw07.pdf
hws/hw08.pdf
hws/hw08.tex
hws/hw09.pdf
Binary file hws/hw01.pdf has changed
Binary file hws/hw02.pdf has changed
Binary file hws/hw03.pdf has changed
Binary file hws/hw04.pdf has changed
Binary file hws/hw05.pdf has changed
Binary file hws/hw06.pdf has changed
Binary file hws/hw07.pdf has changed
Binary file hws/hw08.pdf has changed
--- a/hws/hw08.tex	Tue Nov 28 11:42:31 2023 +0000
+++ b/hws/hw08.tex	Tue Nov 28 11:45:48 2023 +0000
@@ -13,18 +13,18 @@
 \item Write a program in the WHILE-language that calculates
   the factorial function.
 
-\begin{lstlisting}
-write "factorial: ";
-read n;
-minus1 := 1;
-while n > 0 do {
-minus1 := minus1 * n;
-n := n - 1
-};
-write "Result: ";
-write minus1 ;
-write "\n"
-\end{lstlisting}
+%\begin{lstlisting}
+%write "factorial: ";
+%read n;
+%minus1 := 1;
+%while n > 0 do {
+%minus1 := minus1 * n;
+%n := n - 1
+%};
+%write "Result: ";
+%write minus1 ;
+%write "\n"
+%\end{lstlisting}
 
 \item What optimisations could a compiler perform when
   compiling a WHILE-program?
Binary file hws/hw09.pdf has changed