solutions/cw2/loops.while
changeset 894 02ef5c3abc51
parent 864 b5b1bc0a603b
equal deleted inserted replaced
893:54a483a33763 894:02ef5c3abc51
       
     1 start := 1000; 
       
     2 x := start;
       
     3 y := start;
       
     4 z := start;
       
     5 while 0 < x do {
       
     6  while 0 < y do {
       
     7   while 0 < z do { z := z - 1 };
       
     8   z := start;
       
     9   y := y - 1
       
    10  };     
       
    11  y := start;
       
    12  x := x - 1
       
    13 }
       
    14