Computer Science, asked by latikasingh05, 2 months ago

what is a loop ? what are the 2 types of loop.​

Answers

Answered by Rangarao333
3

Answer:A loop in a computer program is an instruction that repeats until a specified condition is reached. In a loop structure, the loop asks a question. If the answer requires action, it is executed. The same question is asked again and again until no further action is required.

Loops are of 2 types: entry-controlled and exit-controlled. 'C' programming provides us 1) while 2) do-while and 3) for loop. For and while loop is entry-controlled loops. Do-while is an exit-controlled loop.

Answered by tharun8072
1

Explanation:

a loop is a computer program

Similar questions