speedy94519 0 Light Poster

Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern?

*  *  *  *  *  # # #                                1
*  *  *  *  # # # #    [B] ROW  [/B]        2
*  *  *  # # # # #                                 3

1  2  3  4  5  6 7 8  
     [B]COL[/B]

Its a 3 x 8 box, the sides represents the rows and the top part of the pattern is the columns. I tried doing the folowing code but it didnt work:

let i =row and j=column

for (i=1; i <= 3; ++i) {
     for (j=5; j >= 1; --j) {
        printf("*");
    }
     for( j=4;j <= 8;++i) {
       printf("#");
     }

Any suggestions????

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.