I need to make a program that prints square with x width and y height with #'s. how can I print multiple #'s ?
{
while (ysize > 0)
{
printf("%0*%d\n", xsize,0);
ysize--;
}
}
this prints multiple 0's but how i make it so it prints multiple #'s?
E: got it working thanks for helping... answer was:
while(ysize >0)
{
int i;
for(i=0;i<xsize;i++){
putchar('#');
}
putchar('\n');
ysize--;
}