//Reaction at A in overhanging beam //refer fig. 8.9 //Applying virtual work principle //(-2*RA+180-20)*delta(y)=0 //Thus RA=(180-20)/2 //kN printf("\n Reaction is RA=%.2f kN",RA)