RosettaCodeData/Task/Babbage-problem/AutoHotkey/babbage-problem.ahk

12 lines
187 B
AutoHotkey
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
; Give n an initial value
n = 519
; Loop this action while condition is not satisfied
while (Mod(n*n, 1000000) != 269696) {
2026-02-01 16:33:20 -08:00
; Increment n
n++
2023-07-01 11:58:00 -04:00
}
; Display n as value
msgbox, %n%