//Horizontal and Vertical components of Force //Resolving 20 kN force we get Fx=20*cosd(60) //kN (towards left) Fy=20*sind(60) //kN (Downward) printf("Horizontal and vertical components respectively are:-\n Fx=%.2f kN (towards left)\n Fy=%.2f kN (Downward)",Fx,Fy)