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)