clc //initialisation of variables pH= 9.26 M= 0.02 //N M1= 0.01 ///N //CALCULATIONS pH1= pH+log(M1/M) //RESULTS printf ('pH = %.2f ',pH1)