下面C++代码执行后的输出是( )。
int tnt = 0;for(int i=0; i<10; i++)if(i%3 && i%7)tnt +=i;cout << tnt << endl
0
7
18
20
发表评论