View Code of Problem 3926

#include<stdio.h>
int main()
{
	int  n,m,a,b;
	scanf("%d %d %d %d",&n,&m,&a,&b);
	char p[n][m],c;
	getchar();
	for(int i=0;i<n;i++)
	{
			scanf("%s",p[i]);
	}
	for(int i=0;i<n*a;i++)
	{
		for(int j=0;j<m*b;j++)
		{
			printf("%c",p[i/a][j/b]);
		}
		printf("\n");
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3926