| 2 | using namespace std; |
| 3 | |
| 4 | int main() |
| 5 | { |
| 6 | cout << "\t\t\tPalcal's Triangle\n"; |
| 7 | int a[7][7] = {}; |
| 8 | int row = 0, col = 0; |
| 9 | for (int row = 0; row < 7; row++) |
| 10 | { |
| 11 | for (int col = 0; col < row; col++) |
| 12 | { |
| 13 | a[0][0] = 1; |
| 14 | a[row + 1][1] = 1; |
| 15 | |
| 16 | cout << a[row][col]; |
| 17 | } |
| 18 | cout << endl; |
| 19 | } |
| 20 | |
| 21 | system("pause"); |
| 22 | return 0; |
| 23 | } |
no outgoing calls
no test coverage detected