Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
338 B
0
Indexable
Never
#include <iostream> 
using namespace std;
int main() {
	int n;
	char ch;
	cin >> n >> ch;
	char mas[100][100];
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			mas[i][j] = ch;
		}
	}

	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			cout << mas[i][j] << ' ';
		}
		cout << '\n';
	}

}