// Calculating the values of resistances clc; g=10; Rf=10; R1=Rf/g; disp(R1,'resistance R1(Kilo-ohms)=') R2=Rf/(0.5*g); disp(R2,'resistance R1(Kilo-ohms)=') R3=Rf/(0.333*g); disp(R3,'resistance R1(Kilo-ohms)=')