ok here's what i need when variables are base1=4 and height1=6:
here's the code i have:Code:* ** *** **** **** **** *** ** *
Code:for (row = 0; row < base1/2+2; row++) { for (col = 0; col<=row; col++) if(col<height1) printf("*"); printf("\n"); } for(row = base1; row>0; row--) { for (space = height1/2+1; space > row; space--) printf(" "); for(col = 1; col<=row; col++) printf("*"); printf("\n"); }
and here's what i get:
i've been messing with this code for hours, if anyone can point me in the right direction then it would be sooooo helpful thanks!Code:* ** *** **** **** *** ** *