var n, x, i; fun printArray (x) { var elem; if x.length == 0 then skip else for i:=0, i