Code :
void afficher (int size_X, int size_Y) { int Line = 1; int Col = 1; while (Line <= size_Y) { while (Col <= size_X) { if ((Line == 1) && (Col == 1)) { putchar('A'); } else if ((Line = size_Y) && (Col = 1)) { putchar('C'); } else if ((Col = 1) || (Col = size_X)) { putchar('B'); }; Col++; }; Col = 1; Line++; }; }; int main(void) { int Matrix_X = 5; int Matrix_Y = 7; afficher(Matrix_X, Matrix_Y); return (0); };
|