solutions/cw3/loops.while
changeset 894 02ef5c3abc51
parent 864 b5b1bc0a603b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/solutions/cw3/loops.while	Fri Nov 04 12:07:40 2022 +0000
@@ -0,0 +1,14 @@
+start := 1000; 
+x := start;
+y := start;
+z := start;
+while 0 < x do {
+ while 0 < y do {
+  while 0 < z do { z := z - 1 };
+  z := start;
+  y := y - 1
+ };     
+ y := start;
+ x := x - 1
+}
+