Consecutive Sums
Learn about nested loops in Ruby through the consecutive sums problem.
Problem
Some natural numbers can be written as a sum of consecutive natural numbers. For example:
Access this course and 1400+ top-rated courses and projects.
Learn about nested loops in Ruby through the consecutive sums problem.
Some natural numbers can be written as a sum of consecutive natural numbers. For example: