Untitled

Run Settings
LanguageLua
Language Version
Run Command
function maximum (a) local mi = 1 -- 最大值索引 local m = a[mi] -- 最大值 for i,val in ipairs(a) do if val > m then mi = i m = val end end return m, mi end print(maximum({8,10,23,12,5}))
Editor Settings
Theme
Key bindings
Full width
Lines