Answer: B

The values of n that get into the loop are 0, 1, 2, ..., 9. Notice that 1 is added to n before n is added to m. So 1, 2, 3, ..., 10 are all added to m. Since m starts at 0, its final value is 1 + 2 + ... + 10.