solutions/cw2/loops.while
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 01 Oct 2023 12:04:51 +0100
changeset 933 62c38f4b1dae
parent 894 02ef5c3abc51
permissions -rw-r--r--
texupdate

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
}