RosettaCodeData/Task/Damm-algorithm/AutoHotkey/damm-algorithm-2.ahk

5 lines
136 B
AutoHotkey
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
result := ""
for i, num in [5724, 5727, 112946, 112949]
result .= num "`tis " (Damm(num) ? "valid" : "not valid") "`n"
MsgBox % result