Hi,
I'm new to C and struggling quite a bit with the following.
I need to draw the following:
I've managed to draw a 5 x 4 grid of *'s using the following:
I know I almost certainly need another nested loop somewhere but I really have no idea where to start if i'm honest![Frown :( :(](/styles/default/xenforo/vbSmilies/Normal/frown.gif)
Any help is appreciated.
I'm new to C and struggling quite a bit with the following.
I need to draw the following:
![yZwBV.jpg yZwBV.jpg](https://forums.overclockers.co.uk/data/attachments/49/49318-bf53fe12e4f942483771937aec11e6b1.jpg?hash=v1P-EuT5Qk)
I've managed to draw a 5 x 4 grid of *'s using the following:
PHP:
#include <stdio.h>
int main(void)
{
int row;
for (row = 0 ; row < 4 ; row++)
{
int column;
for (column = 0 ; column < 5 ; column++)
{
printf("*");
}
printf("\n");
}
return 0;
}
I know I almost certainly need another nested loop somewhere but I really have no idea where to start if i'm honest
![Frown :( :(](/styles/default/xenforo/vbSmilies/Normal/frown.gif)
Any help is appreciated.