clear //Given g=9.8 h=10 B=1.7*10**-5 l=1 //m //Calculation // v=sqrt(2*g*h) e=B*l*v //Result printf("\n Potential difference between its end is %0.3f *10**4 V", e*10**4)