@Afflicted
Обитатель форума
199 / 182 / 8
Регистрация: 28.10.2012
Сообщений: 543
|
28.11.2012, 16:38
|
|
C++ | 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
| #include <iostream>
using namespace std;
int main()
{
int n, m;
cout << "enter N and M" << endl;
cin >> n >> m;
int arr[n][m];
for (int i=0; i < n; ++i)
for (int j=0; j < m; ++j)
arr[i][j] = rand()%19+1;
for (int i=0; i < n; ++i)
{
for (int j=0; j < m; ++j)
cout << arr[i][j] << " ";
cout << endl;
}
return 0;
} |
|
0
|