Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
351 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
	int n;
	char a;
	cin >> n >> a;
	char mas[100][100];
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < n; j++)
		{
			 mas[i][j] = a;
		}
	}
	for (int i = 0; i < n ; i++)
	{
		for (int j = 0; j < n ; j++)
		{
			cout << mas[i][j] << " ";
		}
		cout << endl;
	}
}