-- Chapter 21 example: multiple return values. local function divmod(a, b) return a // b, a % b end local q, r = divmod(17, 5) print(q, r) -- 3 2 print(divmod(20, 6)) -- 3 2 (both shown by print)