1 2 3 4 5 6 7
clc //initialisation of variables c= 1.92*10^-5 //mole per litre //CALCULATIONS pH= -log10(c) //RESULTS printf (' pH of solution = %.2f ',pH)