clc //initialisation of variables x= 3.33 n= 5 //moles //CALCULATIONS N= x^2/(n-x)^2 //RESULTS printf (' moles of water and ester formed= %.f ',N)