adventofcode-2021/day00/part1.lua
Felix Van der Jeugt 3db67bd012
get rid of capitals
2021-12-03 08:04:04 +01:00

9 lines
201 B
Lua

io.input(arg[3])
local min, max = math.huge, -math.huge
for i = 1, io.read("*n") do
local num = io.read("*n")
max = math.max(num, max)
min = math.min(num, min)
end
print(min .. " " .. max)