Sunday, May 23, 2010

Given sum is consecutive integer or not

Given a number determine wether the number is sum of consecutive positive integers,if it is not return false else return true. conscutive integers can be from 2 to n

No comments:

Post a Comment