Untitled
unknown
c_cpp
2 years ago
287 B
2
Indexable
#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"; } }
Editor is loading...
Leave a Comment