Question d’entretien chez Accenture

Print right angle triangle pattern with * only. Using for loop.