Step3. While (Counter< Number of iterations)