RosettaCodeData/Task/Damm-algorithm/AutoHotkey/damm-algorithm-2.ahk
2023-07-01 13:44:08 -04:00

4 lines
136 B
AutoHotkey

result := ""
for i, num in [5724, 5727, 112946, 112949]
result .= num "`tis " (Damm(num) ? "valid" : "not valid") "`n"
MsgBox % result