Find i

Report a typo

What will the value of counter be at the end of this code?

counter = 0
max_value = 0
while counter < 10:
    counter = counter + 1
    max_value = max_value + counter
    if max_value > 15:
        break
    counter = counter + 1
Enter a number
___

Create a free account to access the full topic