1 2 3 4 5 6 7 8 9 10 11 12
clear //Given V=100 //V I=6 //A V1=0.7 //Calculation Pin=V*I R=(V1*Pin)/I**2 //Result printf("\n Armature resistance is %0.2f ohm",R)