1 2 3 4 5
clc; R2=2400; R1=240; Vdc=(1.25)*((R2/R1)+1); disp('V',Vdc,"Vdc=");//The answers vary due to round off error