how would you assign values into an array with one single input.
for example, if the user input 123456789 [enter]
how would I get 1 into array[0], 2 into array[1] .. and so on...
so far I have this
but this takes the input as individual inputs...Code:for (i=0; i<10; i++)
{
printf("Enter value #");
scanf("%d", &value);
array[i] = value;
num++;
}