94.5k views
3 votes
How many times will be body of the FOR loop execute. (note the semicolon at the end of FOR statement

for (int i=0; i<20;i++);
{
//body of for loop
}
O Syntax error
O 20
O 21
O Infinite Loop
will save this response

1 Answer

4 votes

Answer:

Step-by-step explanation:

code in the curly braces is treated as regular body and will be executed normally

User Sfgroups
by
4.4k points