In how many ways can a number be expressed as a sum of consecutive numbers?
INPUT
15
OUTPUT
3
INPUT
10
OUTPUT
1
is there any simple logic for this question :).
please upvote me i was unable to ask question because i have only 1 karma point.