Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Surface Area of things (Incomplete)
local l = 14 local w = 6 local h = 6 local r = 9 local b = 12 local mode = 2 local function main() if mode == 1 then return ((l * h)+(w * h)+(w * l))*2 elseif mode == 2 then return (2 * 3.14 * (r^2)) + (h*(2*3.14*r)) elseif mode == 3 then return (b*h) + (2*l) end end print(main(), "\n"..mode) print(math.sqrt(1176/6))
run
|
edit
|
history
|
help
0
Truly random numbers (Lua)
python like round function in lua
Enums in Lua (library)
Code golf - ASCII art #1
Reverse strings function - Lua
VWPASSATPOLIZEI
Random numbers in Lua. Range: 1-49. Sets of numbers without duplicates
multiline string
Lua recursion with function
String Searcher