执行如下 C++ 代码,其输出是( )。
int tot, i; tot = 0; for (i = 0; i < 10; i++) if (i) tot += 1; cout << tot;
0
8
9
10