If we have any five numbers. how do we find maximum and minimum number of those.

You take the first number and store it in variable Min and Max. Then you take the second number. If that number is larger than the variable Max you overwrite Max and store that varible there. If not then you check if it is smaller than the value stored in Min. If so, you store it there, overwriting the previous stored value. You repeat this for all five variables.

To find the maximum and minimum numbers among any five given numbers, you can follow these steps:

1. Take the first number and store it in two variables, let's say `Min` and `Max`. Initially, both `Min` and `Max` will have the same value.

2. Take the second number.

3. Compare the second number with the `Max` value. If the second number is greater than the `Max` value, update the `Max` variable to the value of the second number.

4. If the second number is not greater than the `Max` value, compare it with the `Min` value. If the second number is smaller than the `Min` value, update the `Min` variable to the value of the second number.

5. Repeat steps 2-4 for each remaining number.

6. At the end, you will have the maximum number stored in the `Max` variable, and the minimum number stored in the `Min` variable.

Here's a simple example using Python code to illustrate this process:

```python
numbers = [10, 5, 20, 15, 3]
Min = Max = numbers[0]

for i in range(1, len(numbers)):
if numbers[i] > Max:
Max = numbers[i]
elif numbers[i] < Min:
Min = numbers[i]

print("Maximum number is:", Max)
print("Minimum number is:", Min)
```

In this example, the given list of numbers is `[10, 5, 20, 15, 3]`. The variable `Min` and `Max` are initially assigned the value of the first number, which is 10. The loop compares each subsequent number with the current `Min` and `Max` values and updates them accordingly. The final result will be the maximum number (20) stored in `Max` and the minimum number (3) stored in `Min`.