1 2 3 4 5 6 7 8 9 10 11
clear //Given V=600 //V d=3*10**-3 //m v=2*10**6 //m/s //Calculation B=V/(d*v) //Result printf("\n Magnitude of magnetic field is %0.3f T", B)