21-01-2014, 19:50
Hvorfor virker dette ikke?
Kode:
io.write("Please choose one the following you wish to use: A(X) B(-) C(/) D(+) ")
calc1_input = io.read()
calc2_input = io.read()
a_input = io.read()
if a_input == "A" then
print(calc1_input .. "X " .. calc2_input .. "= " .. calc1_input*calc2_input)
end