srand(time(0));
const int size = 5;
const int b_size = size * 2;
int A[size]{};
int B[size]{};
int C[b_size]{};
int index = 0;
cout << "Massive A:" << endl;
for (int i = 0; i < size; i++) {
cout << endl;
cout << "Massive B:" << endl;
for (int i = 0; i < size; i++) {
cout << endl;
for (int i = 0; i < size; i++) {
for (int i = 0; i < size; i++) {
cout << "Massive C:" << endl;
for (int i = 0; i < b_size; i++) {
cout << endl;
system("pause");
const int size = 5;
const int b_size = size * 2;
int A[size]{};
int B[size]{};
int C[b_size]{};
int index = 0;
cout << "Massive A:" << endl;
for (int i = 0; i < size; i++) {
A[i] = rand() % 200 - 99;}
cout << A[i] << "\t";
cout << endl;
cout << "Massive B:" << endl;
for (int i = 0; i < size; i++) {
B[i] = rand() % 200 - 99;}
cout << B[i] << "\t";
cout << endl;
for (int i = 0; i < size; i++) {
C[index] = A[i];}
index++;
for (int i = 0; i < size; i++) {
C[index] = B[i];}
index++;
cout << "Massive C:" << endl;
for (int i = 0; i < b_size; i++) {
cout << C[i] << "\t";}
cout << endl;
system("pause");
Комментариев нет:
Отправить комментарий