The next thing to do is to be able to check how many numbers the player has guessed correctly.
A Bull is when the number guessed is in the correct place and is the correct number.
A Cow is when the number guessed is correct but is in the wrong place.
For loops - you can find more about using counter controlled loops here and here