Aristarkos/notebooks/flow_control.jl

20 lines
392 B
Julia

### A Pluto.jl notebook ###
# v0.12.6
using Markdown
using InteractiveUtils
# ╔═╡ e85d0b96-1a4d-11eb-1646-dbb181770804
# multiple nested loops
res = let # note: let is needed; begin would make res global
# and for would not be able to access it
res = ""
for i=1:3, j=2:3
res *= "$i, $j\n"
end
res
end
# ╔═╡ Cell order:
# ╠═e85d0b96-1a4d-11eb-1646-dbb181770804