1 2 3 4 5 6 7 8 9 10 11 12
clear //Given H=4*10**3 //A/m a=60 b=0.12 //Calculation n=a/b I=H/n //Result printf("\n Current should be sent through the solenoid is %0.3f A", I)