Luhn algorithm: Difference between revisions

Content deleted Content added
TDLMTH (talk | contribs)
Fixed Wikipedia reference.
Tag: Reverted
Line 126:
{
int check_digit = 0;
for (int i = digitsdigit.Length - 2; i >= 0; --i)
check_digit += ((i & 1) is 0) switch
{