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
πŸ’¬ Discuss
βœ… Correct Answer: (A) the variable must always be the letter i when using a for loop

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
206
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate