To print pattern of stars