//determine reactions at A,B and D //Refer fig. 3.55 //Taking moment about C RD=(3*5*2.5+(5*9*2*5)/(2*3))/7 //kN RC=15+22.5-RD //kN //Taking moment about A RB=(2*RC/5) //kN RA=RC-RB //kN printf("Required reactions are:-\nRA=%.2f kN\nRB=%.2f kN,\nRD=%.2f kN",RA,RB,RD)