function f(a,b,c)
if c=='+' then
return a+b
end
if c=='-' then
return a-b
end
if c=='*' then
return a*b
end
if c=='/' then
return a/b
end
end
print("请输入第一个数:")
a = tonumber(io.read())
print("请输入第二个数:")
b = tonumber(io.read())
print("请输入你要进行的运算:(+·-·*·/)")
c = io.read()
print(f(a,b,c))