1 2 3 4 5 6 7 8 9
// 3.2 clc; I=1000; Ia=50*10^-3; Is=I-Ia; Ra=10; Va=Ia*Ra; Rs=10*Va/Is; printf("The shunt resistance=%.2f ohm",Rs)