OneCompiler

Circumference Calc. Using Diameter

101

Use this for your homework

You're welcome :)

This is lua code
local findcircumfrence = function(diameter)
print ("The circumfrence is ") print(diameter * math.pi)
end
print("What is the diameter?")
local ans = io.read()
print ("Diameter:",ans)
findcircumfrence(ans)