//Chapter-10,Example 5,Page 253 clc(); close(); E0_Pb=-0.13 E0_Ni=-0.24 E0_cell=E0_Pb-E0_Ni printf('the e.m.f. of cell is %.4f V',E0_cell) printf('\n the cell reaction is') printf('\n Ni + Pb+2 <----> Ni+2 + Pb')