
You are to write a program that calculates a random number from 1 to 10. Ask the user to guess the number. If the user guesses correctly, display a congratulatory message. If the user displays an incorrect answer, give the user two more tries. If after three attempts the user still has not guessed the number, display a message to that effect and terminate the program.
Sample Output
Here are screenshots of my code running.

Success

Fail
Refer to the
deliverables post for comment formatting and required program identification information.
Due Date:Sunday, October 23rd, 6:00pm