i dont think that array can be used in this code
i think we should proceed as below
1. define function for selection of level.
2. take input from user for level in main
3. call function by value
4. use the input retrieved from function to calculate secret number
5.take input from user guess
6. compare the secret number
7. display results
use while loop to give number of tries
calculate number of tries = level +2