Domanda di colloquio di Capgemini

How do make a triangular shape with basic loops?