Computer Science, asked by swargkoram420, 8 months ago

which loop syntax semicolor is compulsory?​

Answers

Answered by sanu137412
0

Answer:

Syntax of a For Loop

The initialization statement describes the starting point of the loop, where the loop variable is initialized with a starting value. A loop variable or counter is simply a variable that controls the flow of the loop. The test expression is the condition until when the loop is repeated.

Answered by Bavashi23
0

Explanation:

Semicolon is a legitimate statement called null statement * that means "do nothing". Since the for loop executes a single operation (which could be a block enclosed in {} ) semicolon is treated as the body of the loop, resulting in the behavior that you observed.

Mark my answer as brainliest mate....

Similar questions