为了绘制飞船的雷达扫描图,需要用到嵌套循环。以下代码执行后,星号*总共输出了多少次?
for(int i = 0; i < 4; i++) { for(int j = 0; j <= i; j++) { cout << "*"; } }
6
10
16
20