Make an assignment b[i] = a[i], in the same for loop where the number is entered by the user. (after he enters it into a[i], of course).