RosettaCodeData/Task/Loops-Nested/AutoHotkey/loops-nested.ahk
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

24 lines
256 B
AutoHotkey

Loop, 10
{
i := A_Index
Loop, 10
{
j := A_Index
Random, a%i%%j%, 1, 20
}
}
Loop, 10
{
i := A_Index
Loop, 10
{
j := A_Index
If (a%i%%j% == 20)
Goto finish
}
}
finish:
MsgBox % "a[" . i . "][" . j . "]" is 20
Return