//Copies array into other_array
for (int i=0; i<5; i++) array[i]=other_array[i];
Try:
other_array[i] = array[i];
The assignment operator assigns the value of the right operand into the object in the left operand. And not the opposite.
Also, as said in other answers:
printf("\nother_array is:\n");
for (int i=0; i<5; i++) printf("%d", array[i]);
Your are printing array
and not other_array
.