40 баллов. Нужно объяснить , как работает программа С++(массив и цикл) #include
#include

using namespace std;

const unsigned int DIM1 = 3;
const unsigned int DIM2 = 5;

int ary[DIM1][DIM2];

int main() {

for (int i = 0; i < DIM1; i++) {
for (int j = 0; j < DIM2; j++) {
ary[i][j] = (i + 1) * 10 + (j + 1);
}
}


for (int i = 0; i < DIM1; i++) {
for (int j = 0; j < DIM2; j++) {
cout << setw(4) << ary[i][j];
}
cout << endl;
}

return 0;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.