here what i need to solve:
you get the same result when you minus the the number with 11 then times the rest with 11 then add minus 21 and times the rest with 21
so something like
i try with the number 10
10 - 11*11-21*21 = the result
i know that this is not correctly done, but i hope you get the point
so here what i have done with this script
local x = 13.0
local y = x
term.clear()
term.setCursorPos(1,1)
while true do
x = x + 0.01
term.clear()
term.setCursorPos(1,1)
y = x
y = y - 11
y = y * 11
y = y - 21
y = y * 21
term.clear()
term.setCursorPos(1,1)
term.write("trying with =")
print(x)
term.write("answer was: ")
term.write(y)
sleep(1)
if y == x then
term.clear()
term.write("The answer is: ")
print(y)
sleep(10)
else
term.setCursorPos(1,1)
print("That wasn't right")
--sleep(0)
end
end
i think the error might be that the y is something like 14.0 and not 14, but im not sure
any help would be appreciated =)
btw don't give me the answer i just want this to work xD