We are given a triangle with the following vertices
A(4, 0)
B(0, 4)
C(0, 0)
Let us draw the altitude on each side of triangle ABC
As you can see, we have drawn the altitude on each side of the triangle.
The slopes of these altitudes are given by

Slope BC:
B(0, 4) and C(0, 0)
![slope\: BC=(y_2−y_1)/( x_2−x_1)=(0-4)/(0-0)=-(4)/(0)=\text{undefined}\quad (\text{vertical line)}]()
Slope AC:
A(4, 0) and C(0, 0)

Slope AB:
A(4, 0) and B(0, 4)

As you can see, only the slope of altitude CF exists.

Therefore, the slope of altitude CF is found to be 1