//c++
#include <iostream>
using namespace std;
void CoutDigit(int n) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++)
cout << n << " ";
cout << endl;
}
signed main() {
setlocale(LC_ALL, "Rus");
int N;
cout << "Введите число: ";
cin >> N;
CoutDigit(N);
return 0;
//c++
#include <iostream>
using namespace std;
void CoutDigit(int n) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++)
cout << n << " ";
cout << endl;
}
}
signed main() {
setlocale(LC_ALL, "Rus");
int N;
cout << "Введите число: ";
cin >> N;
CoutDigit(N);
return 0;
}