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