#include <stdio.h>

int main(void)
{
  int rows, cols;
  
  printf("rows: ");
  scanf("%d", &rows);
  printf("cols: ");
  scanf("%d", &cols);
  
  for(int r = 0; r < rows; r++) {
    // In curses, put the cursor to the start of this rows position here:
    // move(...,...);
    for(int c = 0; c < cols; c++) {
      putchar('#');
    }
    putchar('\n');
  }
  
  return 0;
}
