September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
17
Task/Loops-Nested/Stata/loops-nested-3.stata
Normal file
17
Task/Loops-Nested/Stata/loops-nested-3.stata
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
local q 0
|
||||
local i=1
|
||||
while !`q' & `i'<=20 {
|
||||
local j=1
|
||||
while !`q' & `j'<=20 {
|
||||
display "check `i',`j'"
|
||||
if el("a",`i',`j')==20 {
|
||||
display "found at `i',`j'"
|
||||
local q 1
|
||||
}
|
||||
local ++j
|
||||
}
|
||||
local ++i
|
||||
}
|
||||
if !`q' {
|
||||
display "not found"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue