1 2 3 4 5 6 7 8 9 10 11 12
clear //Given V=19 I1=0.5 I2=2 //A r=2 //Calculation E=V+I1*r //Result printf("\n E.M.F is %0.3f V", E)