How can i write a program that uses for print statements to print 6 pattern of asterisks?

Can you code a shell 'hello world' program that compiles and gives the expected output?

Well, if you can do that ... then think how you might print out all those *** char's

Hint: Maybe use a loop that prints a line of ***
with the number of *** that you want on esch line.

Show us what you can do? We need to see your best code effort ... so far :)

Hint2:
If you want to print a grid ...
you could form a 2D matrix, in memory, of the pattern that you want ... then print out each row.

Also ... study / try out the example code ... the code on the other (old) page where you appended your first post here at Dani's place.