Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Area and Circumference of a circle.
local function areaOfCircle(radius) return math.pi*radius^2 end local function circumferenceOfCircle(diameter) return math.pi*diameter end print("Area =",areaOfCircle(10)) print("Circumference =",circumferenceOfCircle(20))
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Creating habits. Lua
Percentage Calculator (Subscribe to Madflag19)
Fibonacci in Lua (Inspired)
Uppercase
roulette
Eliminatoria minigame
hack
True every 5
Goalless DRAWS
xml panel repeater
stackse - search stackoverflow differently
Please log in to post a comment.