1 2 3 4 5 6 7
r1=22; r2=100; r3=56; v=12; r=r1+r2+r3; v3=v*r3/r; disp("the voltage (in V) across the 56 kΩ resistor is"); disp(v3);