This short text file is program3.txt. Before using it, delete these comment lines and all lines before the first begin. begin x := 12; y := 3; for k := 1 to 10 do if (x + y) = k then x := (8 - (4 - y)) else x := ((x + 2) * y) end