Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, m;
- cin >> n >> m;
- int matrica[3][3];
- int proizvod = 1;
- for (int i = 0; i < n; i += 1)
- {
- for (int j = 0; j < m; j += 1)
- {
- cin >> matrica[i][j];
- }
- }
- for (int i = 0; i < n; i += 1)
- {
- for (int j = 0; j < m; j += 1)
- {
- proizvod *= matrica[i][j];
- }
- cout << proizvod << endl;
- proizvod = 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement