Thursday 25 February 2016

Julia: continue statement


continue statement skips the current iteration of a for, while loops.

julia> a=0;

julia> while(a<10)
           a+=1
           if(a%2==0)
               continue
           end

           println(a)
       end
1
3
5
7
9



Previous                                                 Next                                                 Home

No comments:

Post a Comment