Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Goalless DRAWS
io.write("Maths and english have a weekly football match, this code outputs the ammount of draws with 0 goals") goallessdraw = 0 mathgoals = {0,1,0,2,0,1,2,3,0,2} englishgoals = {0,0,1,2,0,1,2,3,0,2} for i = 1,9,1 do if mathgoals[i] == 0 and englishgoals[i] == 0 then goallessdraw = goallessdraw + 1 end end print("The ammount of goalless draws is " .. goallessdraw)
run
|
edit
|
history
|
help
0
Eliminatoria minigame
python like round function in lua
Newton-Raphson method for the square root
Frequency distribution of rolling a certain number on xDy
The Pyramid in the two-dimensional array made of random stones - Lua
test
Lua Angle Cheatsheet
Binary to Integers / Integers to Binary
Creating habits v3, Lua
ShSlotMachine_Data