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
BasicTablePrinterV2
roulette
Convert MySQL 'framed' table into CSV
Replace all substring in string
Kegs Scores ... FOOOOOOTBALLLLLL
Truly random numbers (Lua)
Hand positions in a circle
Word by Word string partition in Lua
Lua Timer
Hand positions in a circle