local i = 1
while i <= 3 do
    local j = 1
    while j <= 3 do
        print(i, j)
        j = j + 1
    end
    i = i + 1
end