Wednesday, November 21, 2018

For loops

2 comments

For loops

A loop is used in a programming to execute set of instructions/statements repeatedly until a given condition of loops returns false.

 

For loop syntax: - for (initial-value; test-condition; counter) 
                             {
                                        Statement;
                                           }
 

 

2 comments: