clear //Given a=0.4 b=0.6 lab=10 //Calculation K=a/b Vab=K*lab //Result printf("\n (i) Potentila gradient along AB is %0.2f V/m",K) printf("\n (ii) P.D between point A and B is %0.2f V",Vab)