|
The first question that pops my mind is why do you need to enter "-1" whilst the "newline" already implicates a newline.
The second question is: how many sequences is the user allowed to enter in a single run? Twice? Or thrice? Shall we use "-1" to signal the end of all sequences?
So many choices...
But one thing is sure: the whole program should be revised.
__________________
|