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)