Iteration

noun

say it: “it-er-AY-shun” /ˌɪtəˈreɪʃən/

One pass through the body of a loop.

What is Iteration?

Iteration — One pass through the body of a loop. A loop that prints three tickets runs three iterations; "iterate" means to go through the items one pass at a time.

int ticket = 1;
while (ticket <= 3)
{
    Console.WriteLine(quot;Ticket {ticket}"); // one line per iteration
    ticket++;
}

In a sentence

  • “On each iteration the loop printed one ticket number.”

Level: Novice · More Software Development terms at this level

Updated