Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
447 B
0
Indexable
Never
#include <iostream>

using namespace std;
int main()
{
	setlocale(LC_ALL, "Russian");
	int mas[5][5];
	for (int i = 0; i < 5; i++) {
		for (int j = 0; j < 5; j++) {
			cin >> mas[i][j];
		}
	}
	for (int i = 0; i < 5; i++) {
		for (int j = 0; j < 5; j++) {
			if (mas[i][j] == 3) {
				cout << "Ученик: " << i + 1 << ' ' << "День: " << j + 1 << endl;
			}
		}
	}
}
// 5 5 5 4 4 4 4 4 5 5 3 3 3 2 2 2 2 2 3 3 3 4 4 4 4 
Leave a Comment