Pregunta de entrevista de Capgemini

How do make a triangular shape with basic loops?