forked from M-Labs/nac3
standalone: Adapt loop example to output loop variable
This commit is contained in:
parent
6de0884dc1
commit
17b4686260
@ -1,9 +1,12 @@
|
|||||||
|
# For Loop using an increasing range() expression as its iterable
|
||||||
|
|
||||||
@extern
|
@extern
|
||||||
def output_int32(x: int32):
|
def output_int32(x: int32):
|
||||||
...
|
...
|
||||||
|
|
||||||
def run() -> int32:
|
def run() -> int32:
|
||||||
for _ in range(10):
|
i = 0
|
||||||
output_int32(_)
|
for i in range(10):
|
||||||
_ = 0
|
output_int32(i)
|
||||||
|
output_int32(i)
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user