Answer
See the explanation
Work Step by Step
Here's a pseudocode to draw a triangle using the brute force approach:
```
initialize a 2D array of pixels with dimensions (width, height)
initialize vertices of the triangle: (0,0), (2,2), (2,0)
for each pixel in the 2D array:
calculate its coordinates (x, y)
calculate the distances from the pixel to each vertex of the triangle
if the sum of the distances is equal to the distance between two opposite vertices of the triangle:
set the pixel to be part of the triangle
print the 2D array on the screen
```
This pseudocode iterates through each pixel on the screen, calculates its distance from each vertex of the triangle, and if the sum of the distances is equal to the distance between two opposite vertices, it sets the pixel to be part of the triangle.