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 />";
}
{
code to be executed
}
Example
for (i=0; i<5; i++)
{
x=x + "The number is " + i + "<br />";
}
No comments:
Post a Comment