Tuesday, 10 July 2012

For Loop Code

for (variable=startvalue;variable<endvalue;variable=variable+increment)
  {
  code to be executed
  }
Example
for (i=0; i<5; i++)
  {
  x=x + "The number is " + i + "<br />";
  }

No comments:

Post a Comment

Friends