• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved I need some math please!

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,294
Solutions
3
Reaction score
1,037
I need a(couple) math formula(s) to do math on the value of "i".

What I need is as follows:
if i = this then x = should equal this and y = should equal this

And here are the values I need it to come out to:
i = 1 | x = 1 | y = 2
i = 2 | x = 3 | y = 4
i = 3 | x = 5 | y = 6
i = 4 | x = 7 | y = 8
i = 5 | x = 9 | y = 10
i = 6 | x = 11 | y = 12
i = 7 | x = 13 | y = 14
i = 8 | x = 15 | y = 16

:D
 
Damn that was quick. Thank you good sirs! [̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅]
 
Code:
if i % 2 == 0 then
-- even
else
-- odd
end

Code:
for i = 0, 16 do
    if i % 2 == 0 then
        print(i)
    end
end
Code:
0
2
4
6
8
10
12
14
16
 
Last edited:
Back
Top