1 2 3 4 5 6
//EXAMPLE 1-44 PG NO-36 R1=12; //Resistance R2=0.2; //Resistance R3=15; V1=[-(R2*R3)+R1]/3; //voltage drop disp('i) VOLTAGE = '+string (V1)+' V');