Create a loop to display all even numbers from 0 to 100. Describe the three elements that must be included in order for a loop to perform correctly. What will happen if these statements are not included? Provide examples

Here is a loop to display all even numbers from 0 to 100 in Python:

```python
for num in range(0, 101, 2):
print(num)
```

The three elements that must be included in a loop to perform correctly are:

1. Initialization: This sets the initial value for a variable used in the loop. In the above example, the `range(0, 101, 2)` function specifies the starting point (`0`), the ending point (`101`), and the step size (`2`). It initializes the `num` variable to 0.

2. Condition: A condition is checked before each iteration of the loop. If the condition is `True`, the loop continues; if `False`, the loop stops. In this case, the condition is implicit in the `range()` function, which generates numbers in increments of 2 until the `end` value (`101`) is reached.

3. Update: In each iteration, there should be a statement that modifies the variable used in the loop condition. In this example, the `num` variable is modified by incrementing it by `2` in each iteration.

If these three elements are not included, the loop will either not execute at all or it may run infinitely. Here are examples:

1. Loop without initialization:

```python
for num in range(101, 0, 2):
print(num)
```

In this example, the `range()` function starts from 101 and increments by 2. Since 101 is greater than 0, the loop condition is immediately `False` and the loop does not execute. As a result, no numbers will be printed.

2. Loop without a condition:

```python
num = 0
while True:
print(num)
num += 2
```

In this example, the loop condition is ignored (`True`) and the loop runs indefinitely. This can cause the program to hang or result in an infinite loop. To prevent this, a termination condition is typically needed, such as a specific number of iterations or a conditional statement that becomes `False` at some point.

3. Loop without an update:

```python
for num in range(0, 101, 2):
print(num)
# No update statement
```

In this example, all the elements are correctly included, except the update statement is missing. As a result, the loop will keep printing the same `num` value repeatedly and will not reach the end condition, causing an infinite loop. To avoid this, an update statement is required within the loop that modifies the loop variable and brings it closer to the termination condition.