Need to write a program code to create and convert back. It is a simple creation and conversion.
1. Type a set of four number for example 8724, total we have 10 numbers work with 0,1,2,3,4,5,6,7,8,9
2. There are 6 possibilities 8724 will be generated AB,AC,AD,BC,BD,CD
3. Now we subtract from each other 8-7=1(AB) , 8-2=6 (AC ) , 8-4=4(AD)
7-2=5 (BC) , 7-4=3 (BD) , 4-2=2(CD)
So the code is 164532. This is a creation of 6 numbers.
Therefore, 8724 generated a set of 6 numbers.
Now we have so many codes of 6 numbers. We need to do the reverse.
It means if we 123456 to see if generates the 8724.
Your program code should not produce any two numbers of the same.
1. Type in your set of four number
2. Your program does subtract like it was mentioned above.
3. Now we want to reverse it to see how many set of four number will generates.
4. I can not think reverse to solve it .
5. To solve it we have 45 numbers 01,02,03,04,05,06,07,08,09, 12,13,14,15,16,17,18,19,34,35,36,37,38,39,45,46,47,48,49,56,57,58,59,67,68,69,78,79,89,23,24,25,26,27,28,29
6. I can not produce how many set of four numbers will be generated, it might be one set of four number. I can not do reverse. It is a calculation needs to be done by program code, may be by C++
7. The requirements is do not produce double numbers, 8861,5532(not accepted)
8. I want to use convert backward. Your job is to use a program code to generate a set of four number or may be many set of four numbers
9. I have a sample test I have a code of 532187 need to do a conversion, the answer is 5870.
10. You do this feature, I will add more features. Please check to see if you can come up with algorithm for this project. There is no prediction. Just a simple logic