updated
authorChristian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Nov 2020 00:33:16 +0000
changeset 804 387240957c3d
parent 803 d4fb8c7fc3bf
child 805 526e10d97435
updated
progs/while-tests/collatz.while
--- a/progs/while-tests/collatz.while	Fri Nov 13 15:03:48 2020 +0000
+++ b/progs/while-tests/collatz.while	Sun Nov 15 00:33:16 2020 +0000
@@ -3,6 +3,6 @@
 while n > 1 do {
   if n % 2 == 0 
   then n := n/2 
-  else n := 3*n+1;
+  else n := 3*n+1
 };
-write "Yes";
+write "Yes"