[Date Index] [Thread Index] [Author Index]
Re: What is going on!?!
Joe Hays wrote: > Can anyone tell me why the output is not a simple "10" instead of "10 Null"? > > In:= x = 0; > For[i = 1, i <= 10, i++, > x = x + 1; > ] x > > Out= 10 Null > > Your For function returns Null, and this is getting multiplied by x because you forgot the semicolon after the ] . David Bailey http://www.dbaileyconsultancy.co.uk