1. Your program does compare and match correctly. Whether it work in a way you want? This is another question.
2. Note that it compares floats not integers.
3. Usage of count variable is not justified. The last loop block would look much better if changed to:
1 2 3 4 5 6 7 8 9 10
for (i = 0; i < Size; i++)
{
for (j = 0; j < Size; j++)
{
if (firstArray[i] == secondArray[j])
cout << "The number " << firstArray[i]
<< " in the first array is the same as the number "
<< secondArray[j] << " in second array.\n";
}
}