include iostream using namespace std int main double array 21 11 cout

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
using namespace std;
int main() {
double array[21][11];
cout << "f(x, y) = x + y; 0 <= x <= 20, 0 <= y <= 10" << endl;
for (int x = 0; x <= 20; ++x) {
for (int y = 0; y <= 10; ++y) {
array[x][y] = x + y;
}
}
for (int x = 0; x <= 20; ++x) {
for (int y = 0; y <= 10; ++y) {
cout << "array[" << x << "][" << y << "] - " << array[x][y] << endl;
}
}
return 0;
}