please solve this........??????
Answers
Step-by-step explanation:
The possible digits in the code = 1,2,3,4,6,7,8,0
1st condition:-
6 8 2
One number is correct and well placed.
2nd condition:-
6 1 4
One number is correct but wrongly placed.
3rd condition:-
2 0 6
Two numbers are correct but wrongly placed.
4th condition:-
7 3 8
Nothing is correct.
5th condition:-
7 8 0
One number is correct but wrongly placed.
From the given conditions, we can crack the code.
1st condition: Take 6 and think it as a correct digit in the code and well placed. But in second condition, it is said that the digit is correct but wrongly placed. So, no digit in the code can be 6 and 8,2 can be correct.
4th condition: 7,3,8 are wrong and also wrongly placed. So, no digit in the code can be 7,3,8.
In 4th condition, it is said that 8 can't be one of the digit in the code. So from 1st condition and 4th condition, only 2 can be correct and well placed.
So, the code would be 2
In other words, 2 is the last digit in the code.
Now, the left possible digits in the code are 1,4,0
So, the left two digits must be 1,4 or 4,0 or 1,0.
In condition 3, it is given that
2 0 6
Two numbers are correct but wrongly placed.
Already, we know that 6 is wrong. Then, 0 and 2 will be correct. So, 0 will be a digit in the code. The position of the digit 0 would be in hundreds digit or tens digit. But when we consider 0 at tens digits, it would be wrong. So, the hundreds digit and first digit in the code is 0.
Hence, the code is 0 ? 2.
Now, we have to find the tens digit in the code.
The possible values in tens digit are 1 and 4.
In the condition 2, it is said that two numbers are correct but wrongly placed.
We don't consider 6 as it is removed from the possible values. So, 1 and 4 are the correct numbers but wrongly placed. If we replace 4 to tens place and 1 to one's place, it would be correct.
Finally, tens digit is 4.
In the code,
1st digit (hundreds digit) = 0
2nd digit (tens digit) = 4
3rd digit (unit digit or ones digit) = 2.
Therefore, the correct code is 042.
Hence, we cracked the code.
HLW ----MADE BY ME (๑♡⌓♡๑)(๑♡⌓♡๑)(๑♡⌓♡๑)