I have to print out the matching numbers from a text file. I have to rewrite my int lottery function to do the matching part but not sure how.
here is the output:
Sample input file (lottery.txt)
19 12 26 34 5 17
7 5 12 43 5 26
15 19 3 30 27 41
12 12 12 12 12 12
34 12 5 19 17 26
Sample Output
Ticket #1 has 3 matching numbers
Ticket #2 has 0 matching numbers
Ticket #3 has 1 matching numbers
Ticket #4 has 6 matching numbers
Thanks for any input.



LinkBack URL
About LinkBacks




