問題
https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/5/ITP1_5_A (新しいタブで開く)
問題文
たて x よこ の長方形を書いてね。
なら終了。
制約
サンプル
I/O 1
3 4 5 6 2 2 0 0
#### #### #### ###### ###### ###### ###### ###### ## ##
考察
やるだけ。
コード
int main() { while (true) { int h, w; cin >> h >> w; if (h == 0 && w == 0) break; rep(i, h) { rep(j, w) cout << "#"; cout << endl; } cout << endl; } return 0; }