I'm writing a Lottery program where the user type sin 4 numbers between 1 and 30, the program generates 4 random numbers. In my program I have stored the random numbers and the numbers chosen by the player in 2 separate arrays. The problem I have is that I dont know how to make the program tell the user how many numbers they have matched.
Is there an easier way than writing so many if statements, is there a way of comparing the arrays? If anyone can help me I will be very grateful.
Mus.