I'm new to C language and I'm trying to make a program that includes an array of type int with the max length of 10. I want to enter a random number of 1-digit numbers and set all the other values to 0. For example, the console will look like this:
Enter B Values : 1 2 5 7 8
and the B array will look like this 1 2 5 7 8 0 0 0 0 0
I'm trying to add the numbers at the same line without using Enter. Could anyone help? Could the answer be EOF related?