how to encrypted ID of last 4 digit

need to be able to write a code that read the number bit by bit
& also the first digit has to be * 4 and then the second digit * 3 then so on last digit by *1

also the rule is that the int cant be zero if its zero make the digit to 9 if higher then 9 add the to digit together

exp:4 * 4 = 16 1 + 6 = 7 so the new digit is 7

Here's image link:
http://i48.tinypic.com/2hrl4de.png
Last edited on
That shouldn't even compile. You need to go over the basics of programming in C++ again and re-write that.
Topic archived. No new replies allowed.