Thursday 2 December 2010

What's wrong with this for loop? for (int k = 2, k <=12, k++)

► the increment should always be ++k
► the variable must always be the letter i when using a for loop
► there should be a semicolon at the end of the statement
the commas should be semicolons

No comments:

Post a Comment