-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithubcode.txt
More file actions
48 lines (48 loc) · 1.07 KB
/
githubcode.txt
File metadata and controls
48 lines (48 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//#include<iostream>
//using namespace std;
//void m(int a[][3], int b[][3]);
//int main() {
// int a[3][3], b[3][3];
// cout << "enter the array 1:" << endl;
// for (int i = 0; i < 3; i++) {
// for (int j = 0; j < 3; j++) {
// cin >> a[i][j];
// }
// }
// cout << "enter the array 2:" << endl;
// for (int i = 0; i < 3; i++) {
// for (int j = 0; j < 3; j++) {
// cin >> b[i][j];
// }
// }
// m(a, b);
//}
//void m(int a[][3], int b[][3]) {
// int sum = 0;
// cout << "matric 1:" << endl;
// for (int i = 0; i < 3; i++) {
// for (int j = 0; j < 3; j++) {
// cout << a[i][j] << " ";
// }
// cout << endl;
// }
// cout << "matrics 2:" << endl;
// for (int i = 0; i < 3; i++) {
// for (int j = 0; j < 3; j++) {
// cout << a[i][j] << " ";
// }
// cout << endl;
// }
// cout << "multiplication ofmatrics:" << endl;
// for (int i = 0; i < 3; i++) {
// for (int j = 0; j < 3; j++) {
// sum = 0;
// for (int k = 0; k < 3; k++) {
// sum = sum + a[i][k] * b[k][j];
// }
// cout << sum << " ";
// }
// cout << endl;
// }
//
//}