Coding challenge

Write some code to find how many sets of two or more consecutive positive integers have a sum of $15$? (Ans: 3) (Ref: AMC 2006 12A)

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: