View Code of Problem 3926

#include <bits/stdc++.h>
using namespace std;
string arr[100];
int n,m,a,b;
int main()
{
	while(cin>>m>>n>>a>>b) {
		
		for(int i=0;i<m;i++) {
			cin>>arr[i];
		}
		
		for(int i=0;i<m;i++) {
			for(int j=0;j<a;j++) {
				for(int k=0;k<n;k++) {
					for(int l=0;l<b;l++) {
						cout<<arr[i][k];
					}
				}
				cout<<endl;
			}	
		}
	}
	
	return 0;
}

Double click to view unformatted code.


Back to problem 3926