Computer Science, asked by stp6, 11 months ago

what is looping statement in basic language and explain with suitable example​

Answers

Answered by harpreet2223
2

In looping, a program executes the sequence of statements many times until the stated condition becomes false. A loop consists of two parts, a body of a loop and a control statement. The control statement is a combination of some conditions that direct the body of the loop to execute until the specified condition becomes false.

In this tutorial, you will learn-

What are Loops?

Types of Loops

While Loop

Do-While loop

For loop

Break Statement

Continue Statement

Which loop to Select?

Types of Loops

Depending upon the position of a control statement in a program, a loop is classified into two types:

1. Entry controlled loop

2. Exit controlled loop

In an entry controlled loop, a condition is checked before executing the body of a loop. It is also called as a pre-checking loop.

In an exit controlled loop, a condition is checked after executing the body of a loop. It is also called as a post-checking loop.

Answered by satyam0982
4

Answer:

loops are control structures usedto repeat a given sectio of a code a certain numberof times or until a particular condition is met

Similar questions