Lua:求两数的和差积除;
function calc (num1,num2)
print(num1,num2)
print(num1+num2)
print(num1-num2)
print(num1*num2)
print(num1/num2)
end
---
calc(4,6)
function calc (num1,num2)
print(num1,num2)
print(num1+num2)
print(num1-num2)
print(num1*num2)
print(num1/num2)
end
---
calc(4,6)