Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dem_pass = 1
- local dem_fail = 1
- local ten = {
- all = {},
- passed = {},
- failed = {}
- }
- local cs = {}
- local cn = {}
- ten.all = {'nibba', 'bitches', 'poods'}
- cs = {7,6,2}
- cn = {10,5,3}
- for i = 1, #ten.all do
- if cs[i] >= 5 and cn[i] >= 5 then
- ten.passed[dem_pass] = ten.all[i]
- dem_pass = dem_pass + 1
- end
- if cs[i] < 5 and cn[i] < 3.5 then
- ten.failed[dem_fail] = ten.all[i]
- dem_fail = dem_fail + 1
- end
- end
- print('PASSED')
- for i,v in pairs(ten.passed) do print(v) end
- print('FAILED')
- for i,v in pairs(ten.failed) do print(v) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement