1 2
//derive transfer function using block diagram reduction printf("\nl1=3/(s+1);\n l2=-6/(s+2);\n l3=3/(s+3);\n g=l1+l2+l3;\nC(s)/R(s)=g")