Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Loops-Nested/Stata/loops-nested-4.stata
Normal file
18
Task/Loops-Nested/Stata/loops-nested-4.stata
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
capture {
|
||||
forv i=1/20 {
|
||||
forv j=1/20 {
|
||||
display "check `i',`j'"
|
||||
if el("a",`i',`j')==20 {
|
||||
display "found at `i',`j'"
|
||||
exit -1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if _rc==-1 {
|
||||
// value was found
|
||||
}
|
||||
else if _rc==0 {
|
||||
display "not found"
|
||||
}
|
||||
else exit _rc
|
||||
Loading…
Add table
Add a link
Reference in a new issue