Question d’entretien chez NexSoft Jakarta

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