edit the following Python code to make the loop stop when the counter is equal to five
counter = 0
while counter < 10:
    print(counter)
    counter = counter + 1
counter = 0
while counter < 10:
    print(counter)
    if counter == 5:
        break
    counter = counter + 1