clc //initialisation of variables kw= 10^-14 Ka= 1.8*10^-5 //CALCULATIONS Kb= Ka B= sqrt(kw/(Ka*Kb)) //RESULTS printf (' degree of hydrolysis = %.1e ',B)