#!/usr/bin/lua if #arg < 3 then print ("usage: " .. arg[0] .. " price rolls sheets-per-roll") return end function tpc (p, r, s) return (p / (r * s)) end p = arg[1] r = arg[2] s = arg[3] print (tpc(p,r,s))