Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // M est le tableau tel que: int M[5][5];
- void Mat::Multiplier(Mat& A, Mat& B)
- {
- for(int i = 0; i < 5; i++)
- {
- for(int j = 0; j < 5; j++)
- {
- M[i][j] = 0;
- for(int k = 0; k < 5; k++)
- {
- M[i][j] += A.M[i][k] * B.M[k][j];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment