][1](https://i.stack.imgur.com/i90QC.png)

my classmate thinks it's 10 I know it's 11. I can't explain it properly so anyone wanna give it a shot?

The variable starts at 10. Each time it passes it decrements by one and the loop exits when x isn't greater than 0. so when x becomes 0 the loop exits. so it happens from 10 to 0. That's 11 times.