clc //initialisation of variables pH= 4.57 M= 0.03 //mole litre^-1 M1= 0.1 //mole litre^-1 //CALCULATIONS pH1= pH+log10(M1/M) //RESULTS printf ('pH = %.2f ',pH1)