ÎncepețiÎncepe gratuit

For loops question

In the for loop below, how many iterations will the loop perform?

names = ["Anthony", "Jennifer", "Harry", "Stephen"]

for name in names
    println(name)
end

Acest exercițiu face parte din cursul

Intermediate Julia

Vezi cursul

Exercițiu interactiv practic

Transformă teoria în practică cu unul dintre exercițiile noastre interactive

Începe exercițiul