if you want the numbers 1-10 in the array and you don't want to do it this way
int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
you can do it this way
for (i=0, i<10, i++)
{
list[j] = i;
};
but the latter will put the numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 in your array. To get 1-10 in the array using the latter format you can change the value of i so it ranges from 1 and <= 10 or from 1 to < 11. Or you can leave the range of i as you have it and change the value assigned to list[j] by always adding 1 to i before the assignment.