Question: Output example: G:S Microsoft Visual Studio Debug Console Welcome to 4 digits number game. Please enter your 4 digits guess : 1 2 3 4

Output example:
G:S Microsoft Visual Studio Debug Console
Welcome to 4 digits number game.
Please enter your 4 digits guess : 1234
2 is in the right location.
1 is used in a different location.
Please enter your 4 digits guess : 5267
2 is in the right location.
Please enter your 4 digits guess : 8290
8 is in the right location.
2 is in the right location.
is used in a different location.
Please enter your 4 digits guess : 8201
8 is in the right location.
2 is in the right location.
is in the right location.
1 is in the right location.
Congratulations!! You got all numbers right!
Would you like to play again? (yn):n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!