Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? Please note that the numbers arent part of the pattern, they are just a guide for row and column.
* * * * * # # # 1
* * * * # # # # 2 [B] ROW [/B]
* * * # # # # # 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????