#include #include #include "fonctions.h" using namespace std; int main() { cout << "Combien de lignes pour le Triangle de Pascal ? "; int lignes; cin >> lignes; cout << endl; for (int i = 0; i < lignes; i++) { for (int j = 1; j < lignes-i; j++) cout << setw(2) << " " ; // imprime un espace vide for (int j = 0; j <= i; j++) cout << setw(4) << comb(i,j); cout << endl; } cout << endl; return 0; }