while loop julia
#= In Julia while loop consists of three parts
1. while with logical expression
2. statements to execute
3. end =#
while expression
statement(s)
end
Array = [10, 20, 30]
# Iterator Variable
i = 1
# while loop
while i <= length(Array)
# Printing values of Array
println(Array[i])
# Updating iterator globally
global i += 1
# Ending Loop
end