Transistor, resistor, capacitor, inductor, integrated circuit
if you follow me and like and mark in brainliest answer only I will tell the answer
Answer:
for (i = lo, result = 0; i <= hi; result += i, i++) {}
Explanation:
A for loop header has three statements:
- <em>i = 0, result = 0; </em>This statement initializes <u>i</u> and <u>result</u> variables with 0. It is executed only once at the very start of the for loop.
- <em>i <= hi;</em> This statement is executed after the first statement and again after the execution of code in body of the loop.
- <em>result += i, i++</em> This statement is executed after the execution of code in body of the loop but before the execution of second statement.
Therefore, the following sequence of events will occur:
- The result variable is initialized with 0 at start.
- Then, the condition is checked. If the value of i will be less than or equal to the value of hi, the third statement will be executed.
- The third statement will add the value of i to the value of result and then increase the value of i by 1.
- Then, again the condition in second statement will be checked.
This loop will be executed for as long as the condition remains true.