1 2 3 4 5 6 7 8 9 10 11 12
clear //Initialization l=10*10**-3 //inductance in henry di=3 //Calculation v=l*di //voltage //Results printf("\n Voltage, V = %d mV",v*10**3)