Strings
Mathematics
Logic
Hi
local solution = {} function solution.initperson(name, iq) return {name=name,iq=iq} end local you = solution.initperson("you",0) print(string.format("%s have %s IQ!", you.name, 1/you.iq)) -- String placeholder since 1/0 returns "inf" lol return solution
- local solution = {}
- function solution.initperson(name, iq)
- return {name=name,iq=iq}
- end
- local you = solution.initperson("you",0)
print(you.name.." have "..1/you.iq.." IQ!")- print(string.format("%s have %s IQ!", you.name, 1/you.iq)) -- String placeholder since 1/0 returns "inf" lol
- return solution