Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
123
Random Item Generator (1 year)
PAID HACK PuBG
test random skill id
Monty Hall
Lua stuff
multiline string
Map generator
Linear Regression Lua
Properties in Lua
Please log in to post a comment.