local total, evens, has_nine = 0, 0, false for i = 1, 20 do total = total + i if i % 2 == 0 then evens = evens + 1 end if i % 9 == 0 then has_nine = true end end print("total", total) print("evens", evens) print("divisible by 9", has_nine)