|

楼主 |
发表于 2022-6-17 10:56:51
|
显示全部楼层
c = 13.2
b = 4
print("c / b = ",c / b, " c % b= ",c % b)
print(type("Hello world")) --> string
print(type(10.4*3)) --> number
print(type(print)) --> function
print(type(type)) --> function
print(type(true)) --> boolean
print(type(nil)) --> nil
print(type(type(X))) --> string
function myfun(arg)
if(arg == 0) then
return 1
else
return arg * myfun(arg-1)
end
end
print("myfun(5)=",myfun(5))
|
|