1 2 3 4 5 6 7 8
r1=1; r2=3.3; i=16; r=r1+r2; i1=i*r2/r; disp("the current (in mA) through R1 is"); disp(i1); i2=i*r1/r; disp("the current (in mA) through R2 is"); disp(i2);