Loop

Definition & Meaning

Last updated 23 month ago

What is a Loop?

A loop is a Programming Function that iterates a assertion or situation based totally on distinctive limitations.

The loop feature Makes use of nearly same common sense and Syntax in all Programming Languages. Thus, a selected announcement or a set of Commands is Constantly completed until a particular loop body or boundary situation is reached. The end result of the complete loop body’s first operation cycle serves as the following repetition’s start line.

What Does Loop Mean?

A loop time and again executes Code in its Frame till the loop conditional assertion will become false.

A loop is divided into two elements:

  • Loop Statement: This defines the time limit to be authentic for the continuous loop this is contingent at the attached conditional Declaration.
  • Loop Body: This holds the assertion’s code or practise; it is is carried out with each loop cycle.

Here is an example of a loop (a For Loop) in C#:

int i; String numbers = ""; for (i = 1; i <= nine; i ) numbers = i.ToString(); Console.WriteLine(numbers);

The Output of the example is: “123456789.”

Share Loop article on social networks

Your Score to Loop article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Loop

5770- V4

tech-term.com© 2023 All rights reserved