Computer Science, asked by salwynchristopher, 6 months ago

Write a program to input a positive natural number N and output all combinations of consecutive
naturals which add up to give N .
Example : if N = 15 , then the output should be
1 2 3 4 5
4 5 6
7 8

Answers

Answered by sunita9876prasad
0

Answer:

I dont know the ans for this ques

Similar questions