Added definition to function 'twice()'

This commit is contained in:
ketank-new 2017-01-02 17:13:05 +05:30 committed by GitHub
parent bc065ce2bf
commit a13e120fd5

View File

@ -119,6 +119,9 @@ print("********************************************")
print("**********Functions*****************") print("**********Functions*****************")
print("function twice(x) return 2*x end") print("function twice(x) return 2*x end")
function twice(x)
return 2*x
end
b=twice(3) b=twice(3)
print(b) print(b)