Awright, I don't know what 'cs' is. But here's a basic idea of what you need to do:
Get input and store in variables named 'width' and 'height'
for (temp=0;temp<width;temp++)
for (temp2=0;temp2<height;temp2++)
print out '#'
How it works is it goes across:
#####
But since theres another for loop every time it moves across one, it goes down a column:
###
###
###
For example, it'll start at the first #, right? It'll loop until it reaches the last one, but for every time it goes across, it makes a column with a second for loop.
Hopefully I've explained clearly enough.
Btw, I don't know what 'cs' is, but here's some C/C++ code, if it'll help:
#include <stdio.h>
int main(void) {
int temp=0,temp2=0,width=0,height=0;
printf("Input width and height:\n");
scanf("%d%d",&width,&height);
for (temp=0;temp<width;temp++)
for (temp2=0;temp2<height;temp2++)
putchar('#');
return 0;
}
That's untested, but according to all logic and reasoning available at the time of writing, it should work.