Iteration is the repetition of a set of operations in mathematics or computer science. In a computer program, one form of iteration is a loop, which repeats code until a certain condition is met. Another is a recursive function, which may repeatedly execute itself as part of its operation.
Many computer programs and programming languages use iterations to perform specific tasks, solve problems, and present solutions.
In mathematics, a common example of an iterated system is a fractal.