Outputs stars in an upside-down triangle shape based on the user input.