Акали
30.03.2020 21:19

потрібно обрати відоме місце в Лондоні та створити презентацію (4-6 слайдів)

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
hopoloi89
05.02.2020 01:12
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 28 29 30 31 32 //несет меня в эту сторону...   #include "stdafx.h" #include <iostream> #include <cstring> #include <string> int main() { using namespace std;   char name[15]; cout << "what is you first name7 "; cin.get(name, 15).get(); char name2[15]; cout << "what is your last name? "; cin.getline(name2, 15); enum tipenum {A,B,C,D,F}; tipenum p_enum; cout << "what letter grade do you deserve? "; cin >> p_enum; int g; g = p_enum + 1; p_enum = tipenum(g);   short age; cout << "what is your age? "; cin >> age; cout << "name: " << name2 << ", " << name << endl; cout << "grade: " << p_enum << endl; cout << "age: " << age << endl; return 0; }
0,0(0 оценок)
Ответ:
nemkovvlad1
07.04.2021 02:39

.

Объяснение:

#include <iostream>

using namespace std;

int main()

{

   const int N=8;

   int arr1[N][N], arr2[N][N];

cout<<"Исходный массив: "<<endl;  

for (int i = 0; i < N; i++) {

       for (int j = 0; j < N; j++) {

           arr1[i][j] = rand() % 21 - 10;   //заполнение массива от -10 до 10

           cout << arr1[i][j] << " ";

       }

       cout << endl;

   }

   

cout << endl << "Транспонириванный массив: "<<endl;

for(int i=0; i < N; i++){

      for(int j=0; j < N; j++){

         arr2[i][j]=arr1[j][i];

         cout << arr2[i][j] << " ";

}

cout << endl;

}

   return 0;

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота