--- a/solutions/cw2/collatz.while Sun Sep 17 19:12:57 2023 +0100
+++ b/solutions/cw2/collatz.while Tue Sep 19 09:54:41 2023 +0100
@@ -2,7 +2,7 @@
read n;
while n > 1 do {
if n % 2 == 0
- then n := n / 2
- else n := 3 * n + 1;
+ then n := n/2
+ else n := 3*n+1
};
-write "Yes\n";
+write "Yes\n"