#include #include #include #include #include #define SPACE " " using namespace std; // Init Void void afficherFrise(int n, int l, int h); void top(int n, int l); void mid(int n, int l, int h); void bot(int n, int l); int main(void) { afficherFrise(5, 6, 7); system("pause"); return 0; } void afficherFrise(int n, int l, int h) { top(n, l); mid(n, l, h); bot(n, l); } void top(int n, int l) { for (int i = 0; i < n; i++) { for (int j = 0; j < l; j++) { cout << '*'; } for (int j = 0; j < l-2; j++) { cout << SPACE; } } cout << endl; } void mid(int n, int l, int h) { for (int i = 0; i < h; i++) { for (int j = 0; j < 2*n; j++) { cout << '*'; for (int k = 0; k < (l - 2); k++) { cout << SPACE; } } cout << endl; } } void bot(int n, int l) { cout << '*'; for (int i = 0; i < n; i++) { for (int j = 0; j < l - 2; j++) { cout << SPACE; } for (int j = 0; j < l; j++) { cout << '*'; } } cout << endl; }