clc R=52.08 *10^3 disp("R = "+string(R)+"ohm") //initializing value of Resistance. V=5 disp("V = "+string(V)+"volt") //initializing value of voltage. I=(V/R) disp("Drift current,I=(V/R))= "+string(I)+" amphere")//calculation //this is solved problem 2.6 of chapter 2.