Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Loops-Do-while/Stata/loops-do-while-1.stata
Normal file
6
Task/Loops-Do-while/Stata/loops-do-while-1.stata
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
local n 0
|
||||
local q 1
|
||||
while `q' | mod(`n',6) {
|
||||
local q 0
|
||||
di `++n'
|
||||
}
|
||||
5
Task/Loops-Do-while/Stata/loops-do-while-2.stata
Normal file
5
Task/Loops-Do-while/Stata/loops-do-while-2.stata
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
local n 0
|
||||
while 1 {
|
||||
di `++n'
|
||||
if mod(`n',6)==0 continue, break
|
||||
}
|
||||
6
Task/Loops-Do-while/Stata/loops-do-while-3.stata
Normal file
6
Task/Loops-Do-while/Stata/loops-do-while-3.stata
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
mata
|
||||
n=0
|
||||
do {
|
||||
printf("%f\n",++n)
|
||||
} while (mod(n,6))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue