Content deleted Content added
Juice696969 (talk | contribs) No edit summary Tags: Reverted Visual edit Mobile edit Mobile web edit |
Undid revision 1175695821 by Juice696969 (talk) |
||
Line 104:
The following function takes a card number, including the check digit, as an array of integers and outputs '''true''' if the check digit is correct, '''false''' otherwise.
'''function''' isValid(cardNumber[
sum := 0
parity := length mod 2
|