to print the pattern of stars