Untitled

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


int main()
{
	char num[100][100]{0};
	int n;
	char h;
	std::cin >> n >> h;
	for (int y = 0; y < n; y++) {
		for (int x = 0; x < n; x++) {
			std::cout << h;
			num[y][y] = h;
		}
		std::cout << "\n";
	}


}
Leave a Comment