help!!

i need to write a piece of code that will take a number stored in an array and divide it by another number stored in a different array, then output the answer into a new array.

but it should only read the number into the array if the two numbers divide exactly, i.e to give an integer.

thanks!!!!