Problem H {sum+=i++} to Reach N Input: standard input Output: standard output Memory Limit: 32 MB All the positive numbers can be expressed as a sum of one, two or more consecutive positive integers. For example 9 can be expressed in three such ways…