Explain the following statement from a loop codes: for (n=2;n <=8;n++)
Answers
Answered by
4
Answer:
for (n=2;n <=8;n++)
For : It is the keyword for 'for loop'
n=2 : Here n is a variable and the initial value is 2. Or 2 is initialized to the variable n
n <= 8 : It meas the value of n varies from 2 to 8 that means the value of n can have 2, 3, 4 ,5, 6, 7, 8 not other than these values.
n++ : It means the value of n will increased by 1 each time.If this time the value of n is 2 then next time value of n will be 3.
**Please follow me and mark this ans as Branliest answer.Thank you!
Similar questions