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
Fixed
ok
Area of Sector Calculator
dd
cases
Surface Area of things (Incomplete)
help with lua number input
test3
Simple Lua primality test
roulette