Write a program that prompts the user to enter a sequence [terminated by 0] of at least 10 positive integers. Then
As a comment at the beginning of your program you should do a case analysis for this problem: problem statement, analysis, design, and testing.
For example, if I entered the sequence 1,2,3 ,4 5,6,7,8,9,10, I should print out
1 2 3 4 5 6 7 8 9 10 2 3 4 5 6 7 8 9 3 4 5 6 7 8 4 5 6 7 5 6 10 9 8 7 6 5 4 3 2 1 9 8 7 6 5 4 3 2 8 7 6 5 4 3 7 6 5 4 6 5I would be happier though if your output looked as follows:
1 2 3 4 5 6 7 8 9 10
2 3 4 5 6 7 8 9
3 4 5 6 7 8
4 5 6 7
5 6
10 9 8 7 6 5 4 3 2 1
9 8 7 6 5 4 3 2
8 7 6 5 4 3
7 6 5 4
6 5