2020-12-31 10:59:51 +03:00
|
|
|
let x = 1
|
|
|
|
while True:
|
|
|
|
x = x + 1
|
|
|
|
if x > 20:
|
|
|
|
break
|
|
|
|
if x > 15:
|
|
|
|
let y = 0
|
|
|
|
while True:
|
|
|
|
y = y + 1
|
2021-01-04 17:33:43 +03:00
|
|
|
print("[ y = ",y,"]")
|
2020-12-31 10:59:51 +03:00
|
|
|
if y == x:
|
|
|
|
break
|
2021-01-04 17:33:43 +03:00
|
|
|
print("y = ",y)
|
2020-12-31 10:59:51 +03:00
|
|
|
if x > 10:
|
2021-01-04 17:33:43 +03:00
|
|
|
print("not going to print this one :)")
|
2020-12-31 10:59:51 +03:00
|
|
|
continue
|
2021-01-04 17:33:43 +03:00
|
|
|
print("x = ",x)
|
|
|
|
print("hello",x)
|
2020-12-31 10:59:51 +03:00
|
|
|
|
|
|
|
for i in [1,2,3,4,5,6]:
|
|
|
|
if i == 2:
|
2021-01-04 17:33:43 +03:00
|
|
|
print("skipping 2")
|
2020-12-31 10:59:51 +03:00
|
|
|
continue
|
|
|
|
if i == 4:
|
2021-01-04 17:33:43 +03:00
|
|
|
print("4? ending early!")
|
2020-12-31 10:59:51 +03:00
|
|
|
break
|
2021-01-04 17:33:43 +03:00
|
|
|
print(i * 5)
|
|
|
|
print("Done")
|