I just added 1 to i to make it show numbers 1 to 10 in the text message the user sees. While that may not be the case with some of us here, "normal people" are used to count things starting with 1, and not 0.
If you are confused by it, you should experiment with printf. Before you do that, read the manual entry: printf - C++ Reference