all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
20
Task/Stack/OxygenBasic/stack.oxy
Normal file
20
Task/Stack/OxygenBasic/stack.oxy
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
function f()
|
||||
sys a=1,b=2,c=3,d=4
|
||||
push a
|
||||
push b
|
||||
push c
|
||||
push d
|
||||
print a "," b "," c "," d 'result 1,2,3,4
|
||||
a=10
|
||||
b=20
|
||||
c=30
|
||||
d=40
|
||||
print a "," b "," c "," d 'result 10,20,30,40
|
||||
pop a
|
||||
pop b
|
||||
pop c
|
||||
pop d
|
||||
print a "," b "," c "," d 'result 4,3,2,1
|
||||
end function
|
||||
|
||||
f
|
||||
Loading…
Add table
Add a link
Reference in a new issue