MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

What is going on!?!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104688] What is going on!?!
  • From: Joe Hays <joehays at vt.edu>
  • Date: Sat, 7 Nov 2009 06:46:03 -0500 (EST)

Can anyone tell me why the output is not a simple "10" instead of "10 Null"?

In[3]:= x = 0;
For[i = 1, i <= 10, i++,
  x = x + 1;
  ] x

Out[4]= 10 Null



  • Prev by Date: Re: Mathematica skill level snippet(s)
  • Next by Date: Complex solutions to simple equations
  • Previous by thread: Re: Thikness of edges in a 3D graph
  • Next by thread: Re: What is going on!?!