View Code of Problem 3926

#include <iostream>
using namespace std;
int main(){
	int n,m,a,b;
	char str[15][15];
	cin>>n>>m>>a>>b;
	for(int i=0;i<n;i++)
		cin>>str[i];
	for(int i=0;i<n;i++){
		for(int k=0;k<a;k++){
			for(int j=0;j<m;j++){
				for(int h=0;h<b;h++){
					cout<<str[i][j];
				}
			}
			cout<<endl;
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3926