Damm algorithm: Difference between revisions
Content added Content deleted
(→static table: simplified and optimized the code.) |
|||
Line 1,214:
@.0= 0317598642; @.1= 7092154863; @.2= 4206871359; @.3= 1750983426; @.4= 6123045978
@.5= 3674209581; @.6= 5869720134; @.7= 8945362017; @.8= 9438617205; @.9= 2581436790
call Damm 5724, 5727, 112946, 112940
exit
/*──────────────────────────────────────────────────────────────────────────────────────*/
Damm:
do
end /*p*/
if $==0 then say ' valid checksum digit ' z "
end /*j*/;
{{out|output|text= when using the (internal) default inputs:}}
<pre>
|