What are looping constructs? When does a loop terminate?

 

Answer:

Looping constructs provide the facility to execute a set of statements in a program repetitively , based on a condition. The statements in a loop are executed again and again as long as the particular logical condition remains true . This condition is checked based on the value of a variable called the loop’s control variable. When the condition becomes false , the loop terminates.

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.