Triangles using for loop