i1=0.37 //KVL for loop 2 i2=(-100+20*i1)/50 //KVL for loop 1 R=(50+20*(i2-i1))/i1 disp(R)