View Code of Problem 3926

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

Double click to view unformatted code.


Back to problem 3926