Luhn Algorithm Simulation

Type a number and see which digits are doubled, what the total is, and why the number is valid or not.

digit is doubled (then 9 is subtracted if the result is over 9)Counted from the right