Whats wrong with this for loop for int k 2 k 12 k-02811
Whats wrong with this for loop? <br>for (int k = 2, k <=12, k++)
This multiple choice question (MCQ) is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Lecture No.06 - Quiz No.1.
Whats wrong with this for loop?
for (int k = 2, k <=12, k++)
for (int k = 2, k <=12, k++)
there should be a semicolon at the end of the statement
the commas should be semicolons
the increment should always be ++k