Ever found yourself writing a simple task repeatedly in your code? That's where iteration in programming comes into play. Iterations, essentially, are loops that repeat a segment of code based on a certain condition. They're the unsung heroes behind our computers' ability to perform tasks millions of times faster than we can blink. Let's dive into the world of iteration examples in programming.

Before we leap into different programming languages, let's understand the basics. Iteration is accomplished through control structures like 'for' and 'while' loops. These constructs repeat a block of code until a specific condition isn't met. Now, buckle up as we zing through some stimulating iteration examples in programming languages you might be familiar with.

Imperative Languages: C & Java
Let's kickstart with C and Java, two widespread imperative languages.

In C, a simple 'for' loop could look like this:
```c for (int i = 0; i < 10; i++) { printf("%d\n", i); } ```
This loop prints numbers from 0 to 9. Here, the condition is 'i < 10', and the increment expression is 'i++'.

C - While Loop
Now, let's explore a 'while' loop in C:
```c int i = 0; while (i < 10) { printf("%d\n", i); i++; } ```
Both 'for' and 'while' loops achieve the same result in C. But they're used based on the situation's complexity.

Java - Enhanced For Loop
Java introduces an enhanced 'for' loop, great for iterating through arrays:
```java int[] numbers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; for (int number : numbers) { System.out.println(number); } ```
This loop simplifies array traversal, making it cleaner and more readable.

Functional Languages: Python & Ruby
In functional languages, iteration isn't confined to loops. Recursion, where functions call themselves, can achieve similar results.









Here's a Python 'for' loop:
```python for i in range(10): print(i) ```
And a Ruby 'times' method in a loop:
```ruby 10.times do |i| puts i end ```
Both print numbers from 0 to 9. The power of functional languages often lies in their succinct syntax.
Python - Recursion
Lastly, let's glimpse at Python's recursion. Here's a function that counts down from 5:
```python def countdown(n): if n < 0: return else: print(n) countdown(n - 1) countdown(5) ```
Each recursive call decreases 'n' by 1 until it's no longer greater than 0.
Now that you've witnessed an array of iteration examples in programming, which language impresses you the most? Have you considered exploring one you haven't dabbled in before?