Anonymous user
Middle three digits: Difference between revisions
→{{header|Lua}}
Line 478:
n = tostring(n)
if #n % 2 == 0 then
return "Error: the number of digits is even."
elseif #n < 3 then
return "Error: the number has less than 3 digits."
|