Write a program in Java which inputs a positive natural number N and prints the possible consecutive number combination, which N | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program in Java which inputs a positive natural number N and prints the possible consecutive number combination, which N

18th Aug 2017, 7:26 PM
Mohit
Mohit - avatar
4 Answers
+ 6
Sounds like homework? And the task is incomplete?
31st Aug 2017, 8:29 AM
Tashi N
Tashi N - avatar
0
yeah it was my assignment. :P
31st Aug 2017, 8:36 AM
Mohit
Mohit - avatar
0
Now, I didn't have the time to think bout it and code
31st Aug 2017, 8:36 AM
Mohit
Mohit - avatar
0
So, I just asked y'all
31st Aug 2017, 8:36 AM
Mohit
Mohit - avatar