I am new to C and was making a program where a hash grid is drawn and the user inputs the dimensions of a grid. I also used the cs50 Library to get a int. When ever I input the dimensions, no hashes show up. Please help me. Thanks in advance Code:
#include <stdio.h>
#include <cs50.h>
int main(void){
int x;
int y;
do{
x=get_int("Width of the hash floor: ");
y=get_int("Length of the hash floor: ");
return x;
return y;
} while (x>1);
for (int n=0;n<x;n++){
printf("#");
for(int a=0;a<y;a++){
printf("#\n");
}
}
}