1 2 3 4 5 6 7 8 9 10
//chapter26 //example26.1 //page570 R2=2.4d3 // ohm R1=240 // ohm V_out=1.25*(1+R2/R1) printf("regulated dc output voltage = %.3f V \n",V_out)