28 lines
568 B
C

#include <stdio.h>
#include "exos.h"
int sommeNombresPairs(int n);
void afficherTriangle(int n);
int valeurMax(int tab[], int n);
void additionMatrice(int matrice1[3][3], int matrice2[3][3], int resultat[3][3]);
void afficherMatrice(int matrice[3][3]) {
// This functions prints a 3x3 matrix in the console
for (int i = 0; i < 3; i++) {
printf("|");
for (int j = 0; j < 3; j++) {
printf("%d ", matrice[i][j]);
}
printf("|\n");
}
}
void inverserChaine(char chaine[]);
int compterVoyelles(char chaine[]);