1. ## Help with arrays task

I have just started learning about arrays, however I cant get my head around them, I am trying to write code that does this:

Asks the user to enter 5 different characters and stores these in an array
Prints the array on screen
Asks the reader to enter 5 numbers between 1 and 10 into a second array
Prints the second array on screen
Prints out all characters in array 1 the number of times indicated by the entry in array 2

So far I have come up with this:
Code:
```    char inputOne[5], i=0;
int inputTwo[5], j=0;

printf("Enter 5 different characters: ");

for ( i=0; i<5; ++i){

scanf("%s", &inputOne[i]);

}

printf("You entered: %c, %c, %c, %c, %c", inputOne[0], inputOne[1],inputOne[2],inputOne[3],inputOne[4]);

printf("\nEnter 5 numbers between 1 and 10: ");

for ( j=0; j<5; ++j){

scanf("%d", &inputTwo[j]);

}

printf("You entered: %d, %d, %d, %d, %d", inputTwo[0], inputTwo[1],inputTwo[2],inputTwo[3],inputTwo[4]);```
however this doesnt include the last bit as I am struggling to work out how to do it, could anyone help me out

an example of what the input and output should be:

User enters: b, e, f, a, x into array 1
2, 5, 6, 1, 9 into array 2

Output: You entered: b, e, f, a, x into array 1
You entered: 2, 5, 6, 1, 9 into array 2

2. %s is the format specifier to read a string. Since you want to read a character only, it should be %c.

3. okay but do you know how i would complete the last point 'Prints out all characters in array 1 the number of times indicated by the entry in array 2'

4. Yes: loop through both arrays at the same time. You need an inner loop too.