Content deleted Content added
reference & external link update |
Fix buggy C# implementation which was giving an incorrect answer for arrays of odd length. E.g. it was returning `false` for "49927398716" |
||
Line 122:
=== [[C Sharp (programming language)|C#]] ===
<syntaxhighlight lang="c#" line="1">
bool IsValidLuhn(
{
int
for (int i = digits.Length - 2; i >= 0; --i)
{
}
return (10 -
}
</syntaxhighlight>
|