for(i=0; i<4; i++) { // 输出空位 for(j=0; j cout << "\t"; } // 输出数字 for(j=i; j<4; j++) { cout << num[i][j] << "\t"; } // 输出换行 cout << endl; }