1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given R=20 //ohm L=10 //m pd=10**-3 //V/m V=10**-2 //Volts //Calculation I=V/R R11=(2/I)-R //Result printf("\n The value of resistance is %0.3f ohm", R11)