Capgemini Interview Question

How do make a triangular shape with basic loops?