1)
-Get input from the user any way you like. getch() or whatever.
-Then just use a for loop.
2)Code:for (int i = 0; i < MAX_ARRAY_ELEMENTS; i ++) array[i] = input_from_user;
Simular to the first.
Code:for (int i = 0; i < MAX_ARRAY_ELEMENTS; i ++) { if (array2[i] != 0) //we dont want division by zero Result[i] = array1[i] / array2[i]; else Result[i] = 0; }