View Code of Problem 3926

#include<iostream>
#include<string>

using namespace std;

int main()
{
    int n,m,a,b;
    cin>>n>>m>>a>>b;
    string s[n];
    for(int i=0;i<n;i++)
        cin>>s[i];
    for(int i=0;i<n;i++)
    {
        int a1=a;
        while(a1--)
        {
            for(int j=0;j<m;j++)
            {
                int b1=b;
                while(b1--)
                    cout<<s[i][j];
            }
            cout<<endl;
        }

    }
}

Double click to view unformatted code.


Back to problem 3926