Ok, so I made this program. It is working just fine. But I don't know how to make it calculate the number of tries i took the user to guess the correct number. I'm doing this practice exercise.
I have introduces an integer "tries" but I dont know how to use it now.
Write a program that calculates a random number 1 through 100. The program then asks the user to guess the number.
If the user guesses too high or too low then the program should output "too high" or "too low" accordingly.
The program must let the user continue to guess until the user correctly guesses the number.
★ Modify the program to output how many guesses it took the user to correctly guess the right number.