Do you really want to play with numbers.... I have a puzzle for you then
Create a 10 digit number so that the first digit is the number of zeros in the number, the second digit is the number of ones in the number, the third digit is the number of twos, etc.
Is this program giving the possible solution? If yes, I do not find the correct one in your program.
BTW, qbkiller have already told me the answer at discord. He did that by writing a script in JavaScript.
One side note, This problem is not created by me or its made by me. The original problem is here - http://paulbourke.net/fun/zeros.html
Also, I was trying to solve this problem without using any computer program , etc but since qbkiller had told me the answer, I have lost
all the interest in this very good puzzle.
BTW, qbkiller have already told me the answer at discord. He did that by writing a script in JavaScript.@qbkiller101 I'd love to see it! :)
Oh looks like STxAxTIC has a solution but is it the only one? LOLYeah, He has the solution, but I *do not* know whether there is multiple solutions or not.
Oh looks like STxAxTIC has a solution but is it the only one? LOL@bplus same that static told :)
@Ashish Not posted as solution, I didn't think there might be one. I thought if there were one then the code would get to it, sort of like a limit, but alas it didn't. Looks like it was close. I was impressed that any string of digits kept going to that sequence of two numbers after say 5 iterations.
@qbkiller101 I'd love to see it! :)
@bplus same that static told :)
@qbkiller101 Yeah I assumed you got the answer but if you used a program that is different that just figuring from your head. It's the program I'd like to see. Is Java Script the first Programming Language you learned?
The digits do have to add up to 10, plug in permutations that add to 10 and using lowest digits?
I see Steve has found a 2nd solution, sorta :)
Little Endian answer vs Big Endian. It's the same value, just represented in reverse order. ;)