Example algorithm, min and max, while loops - Iteration - Computer Science