Validate International Securities Identification Number: Difference between revisions
Validate International Securities Identification Number (view source)
Revision as of 21:41, 14 June 2024
, 15 days ago→{{header|langur}}
(Added Uiua solution) |
Langurmonkey (talk | contribs) |
||
Line 2,104:
The luhn test is repeated here for simplicity.
<syntaxhighlight lang="langur">
val luhntest = fn(s) {
val
val
val oddeven = len(numbers) rem 2
for[=0]
_for += if
} else {
}
} div 10
}
val
}
val
"US0378331005": true,
"US0373831005": false,
Line 2,133 ⟶ 2,134:
}
for
val
write
writeln if(
}
{{out}}
|