Sum 1 To N

Sum all integers from 1 to n using a loop.

Topics: loops, numbers, math. Solve this Luau challenge inside Luablox with visible examples and hidden tests.

Understand loop structures in Luau, including numeric, while, generic pairs, and ipairs iterators.

Browse all Luau problems

Read a theory lesson

Related pages