eternal
Создайте блок схем для кода C++#include #include #include using namespace std;int main(){srand((int)time(0));const int n = 8, m = 4;double a[n][m];for (int i = 0; i < n; i++){for (int j = 0; j < m; j++){a[i][j] = 0. 1 * (rand() % 99+1);cout << setw(3) << a[i][j] << " ";}cout << endl;}cout << endl;for (int i = 0; i < n - 2; i += 3)swap(a[i], a[i + 2]);for (int i = 0; i < n; i++){for (int j = 0; j < m; j++)cout << setw(3) << a[i][j] << " ";cout << endl;}system("pause");return 0;}
ответы: 1
Зарегистрируйтесь, чтобы добавить ответ
Чтобы ответить необходимо зарегистрироваться.