1.

In statement for n=1 to 10, what is the initial value of n​

Answer»

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 )



Discussion

No Comment Found