write a prog to input an integer x? wheer x>0?for
integer x,the program as to convert it into sum of
consecutive positive integters/
4 example the sum of interger 10=1+2+3+4.
the total number of consecutive positive integers
should be maximum example 9=2+3+4 and 9=4+5 but 9=2+3+4 is valid
some integer such as 4 cannot be represented
as a sum of consecutive positive integers.
in that case output is no answer
integer x,the program as to convert it into sum of
consecutive positive integters/
4 example the sum of interger 10=1+2+3+4.
the total number of consecutive positive integers
should be maximum example 9=2+3+4 and 9=4+5 but 9=2+3+4 is valid
some integer such as 4 cannot be represented
as a sum of consecutive positive integers.
in that case output is no answer
Comment