Answers for "while loop julia"

0

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
Posted by: Guest on June-01-2021

Code answers related to "Julia"

Browse Popular Code Answers by Language