[julia-users] Re: for loop with multiple variables

2016-05-10 Thread Vishnu Raj
Thanks :) On Tuesday, May 10, 2016 at 4:44:18 PM UTC+5:30, Lutfullah Tomak wrote: > > for (i,j)=zip(0:5,6:10) > println(i+j) > end > On Tuesday, May 10, 2016 at 2:02:41 PM UTC+3, Vishnu Raj wrote: >> >> What if the equivalent of the C code below >> for( i=0, j=6; i<=5, j <=10; i++, j++ )

[julia-users] Re: for loop with multiple variables

2016-05-10 Thread Lutfullah Tomak
for (i,j)=zip(0:5,6:10) println(i+j) end On Tuesday, May 10, 2016 at 2:02:41 PM UTC+3, Vishnu Raj wrote: > > What if the equivalent of the C code below > for( i=0, j=6; i<=5, j <=10; i++, j++ ) print( "%d", i+j ); > in julia? >