Hi, I'm working on this for this last weekend and have been thinking for hours to figure out how the hell can I print the duplication in arrays that's been initialized with random numbers... :( does anyone have suggestion or ideas on how to do this? I'm just having problem with the printing part, because it's printing it twice, because:
EXAMPLE: 1 2 3 4 4 5 6 1 2
counter at a[0] and a[7] have the same value, and printing needs to be inside the for loops so that it can print for all numbers that have duplication... such as in this case "4" and "2" too! :(
I just need to make additional IF requirement so that it doesn't print twice, but I don't have idea on how can I specify IF THIS NUMBER has been PRINTED, do not print again... :-/ something like that... pliz help thx