#include <iostream>
#include <ctime>
#define r 25
#define c 36
signed main()
{
setlocale(LC_ALL, "Rus");
srand(time(NULL));
int _counter = 0;
int matrix[r][c];
for (int i = 0; i < r; i++) {
for (int j = 0; j < c; j++) {
matrix[i][j] = rand() % 2;
std::cout << matrix[i][j] << " ";
}
std::cout << std::endl;
for (int j = 0; j < c; j++)
if (matrix[11][j] == 1)
_counter++;
std::cout << "\nКоличество проданных билетов в 12-м ряду: " << _counter << std::endl;
#include <iostream>
#include <ctime>
#define r 25
#define c 36
signed main()
{
setlocale(LC_ALL, "Rus");
srand(time(NULL));
int _counter = 0;
int matrix[r][c];
for (int i = 0; i < r; i++) {
for (int j = 0; j < c; j++) {
matrix[i][j] = rand() % 2;
std::cout << matrix[i][j] << " ";
}
std::cout << std::endl;
}
for (int j = 0; j < c; j++)
if (matrix[11][j] == 1)
_counter++;
std::cout << "\nКоличество проданных билетов в 12-м ряду: " << _counter << std::endl;
}