Which value will counter store after the while loop?

1110

Because the loop ends when counter < 11, it will run one more time when counter is 10 and increment it before not repeating again.