in statement for n=1 to 10, what is the initial value of n
Answers
Answered by
0
Answer:
For the above question, initial value of n is 1.
Explanation:
For loop is a loop that repeats a group of statements for a specified number of times. The for loop comes up with a syntax where the following information is provided.
1. condition
2. Initial value for the counting variable
3. incrementation or decrementation of counting variable.
syntax: For( intialization ; condition ; increment or decrement )
Similar questions