Quote Originally Posted by Daved
This can be done rather simply with a single for loop. I don't want to give too much away because figuring this out is likely the point of the assignment, but your for loop doesn't have to be fancy. It can just loop from 0 to 10. Then inside the loop you output both the array1 and array2 value if they are valid.
Thank you for your big hint! I forget I can use boolean value to do that! What an idiot!lol Now this part is fixed.