Generation

generate functionTue, 17 Jan 2023

Транспондер клон-ID46

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; // Функция транспонирования матрицы void transpose(int **arr, int n) { for (int i = 0; i < n; i++) for (int j = i; j < n; j++) swap(arr[j][i], arr[i][j]); } // Функция отображения матрицы void display(int **arr, int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) cout << arr[i][j] << " "; cout << endl; } } int main

Want to kickstart your project?Use the new AI Studio to create your code