A

Admin • 833.24K Points
Coach

Q. What’s wrong?

Code:
for (int k = 2, k <=12, k++)
  • (A) the variable must always be the letter i when using a for loop
  • (B) there should be a semicolon at the end of the statement
  • (C) the commas should be semicolons
  • (D) the increment should always be ++k
  • Correct Answer - Option(A)
  • Views: 34
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.