24 lines
424 B
Python
24 lines
424 B
Python
import stdio
|
|
import t, c
|
|
|
|
|
|
def flow_test() -> int:
|
|
i: int = 0
|
|
total: int = 0
|
|
while i < 5:
|
|
total = total + i
|
|
i = i + 1
|
|
stdio.printf("while: total=%d i=%d\n", total, i)
|
|
|
|
for k in range(10):
|
|
if k == 3:
|
|
break
|
|
stdio.printf("break: k=%d\n", k)
|
|
|
|
for m in range(5):
|
|
if m == 2:
|
|
continue
|
|
stdio.printf("continue: m=%d\n", m)
|
|
|
|
return 0
|