Find square difference: Difference between revisions
Added AutoHotkey
m (→{{header|Phix}}: added alternative) |
Alpha bravo (talk | contribs) (Added AutoHotkey) |
||
Line 52:
Smallest n where n^2 - (n-1)^2 is > 1000 is: 501
</pre>
=={{header|AutoHotkey}}==
<lang AutoHotkey>while ((n:=A_Index)**2 - (n-1)**2 < 1000)
continue
MsgBox % result := n</lang>
{{out}}
<pre>501</pre>
=={{header|AWK}}==
|