Computer Science, asked by vaibhavmishra96, 3 months ago

4. 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 replaced with semicolons​

Answers

Answered by keyboardavro
2

Answer:

The variable must always be the letter i when using a for loop

Explanation:

Answered by sarvagya91
1

Answer:

C: There should be a semicolon at the end of the statement.

Explanation:

there is always used semicolons ; at the end of the any statement for terminate the line.

this is not true that a variable can take only "i" we can chose any letter for variable.

Similar questions