//Berezvai Dániel
//BEDTACI.ELTE

//Specifikáció:
//be: int a,b; char c;
//ki: str[] teglalap
//ef: a>0 b>0 c!=''
//uf: str[b].length=a; ("b" sora van, "a" hosszu minden sor.)
#include <iostream>
#include <stdlib.h>
//#include <string>
using namespace std;
int main(){
cout<<"Teglalap"<<endl;

//be:
string s;
int a,b;char c;
do{
	cout<<"Szeles = ";
	getline(cin,s);
	a=atoi(s.c_str());
}while(a==0 && s!="0");
do{
	cout<<"Magas = ";
	getline(cin,s);
	b=atoi(s.c_str());
}while(b==0 && s!="0");
do{
	cout<<"Char = ";
	getline(cin,s);
	c=s.c_str()[0];
}while(!c);

//uf:
string teglalap[b];
for(int i=0;i<b;i++){
	for(int j=0;j<a;j++){
		teglalap[i]+=c;
	}
}

//ki:
cout<<a<<"x"<<b<<" teglalap '"<<c<<"' karakterekkel feltoltve:"<<endl;
for (int k=0;k<b;k++){
	cout<<teglalap[k]<<endl;
}

return 0;
}
