Domanda di colloquio di NexSoft Jakarta

How to create triangle like object by using single character and using loops?