View Code of Problem 3926

#include <stdio.h>

int main(void) {
  int n, m, a, b;
  int index, rows, columns;
  char edge[16];

  scanf("%d%d%d%d", &n, &m, &a, &b);
  while (n--) {
    scanf("%s", edge);
    for (rows = 0; rows < a; rows++) {
      for (index = 0; index < m; index++) {
        for (columns = 0; columns < b; columns++) {
          putchar(edge[index]);
        }
      }
      putchar('\n');
    }
  }

  return 0;
}

Double click to view unformatted code.


Back to problem 3926