Q.

What’s wrong? for (int k = 2, k <=12, k++)

A. the increment should always be ++k
B. the variable must always be the letter i when using a for loop
C. there should be a semicolon at the end of the statement
D. the commas should be semicolons
Answer» B. the variable must always be the letter i when using a for loop
1.5k
1
Do you find this helpful?
14

Discussion

G

Gaurav
2 years ago

Ans is D
0