1. Define for loop?
2. What is the syntax of for loop?
Answers
Answered by
0
Answer:
1. In computer science, a for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly. ... For-loops are typically used when the number of iterations is known before entering the loop.
2. 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
0
loop is a sequence of instruction that continuously repeated until a certain condition is reached
this is the answer of question 1
hope it will help you
Similar questions