The deal is as follows:
How to receive C (integer) entries until "ENTER" is pressed?
In my program, the user should enter a list linked in the following format:
num0 num1 num2 num3 num4 num5 num6 num7 num
Ex. list:
19 8 9 14 15 9 -9 0 7 6 5 4 -123 1.
The size of the list is unknown. It can be as many integers as the user wants to type.
How to stop the entry after the usefulness number is entered?
What I need is that after the enter is pressed, the program stops reading the entries.
Ex. The user types: 4 5 6 7 8 9 10 and now [ENTER]. How to read the list, since I do not use any conditions to stop the entry?
The program must accept negative, nonnegative, and zero integers.