clc //initialisation of variables P= 10 //atm Kp= 0.1719 //CALCULATIONS a= sqrt(Kp/(10+Kp))*100 //RESULTS printf (' percentage = %.f percent',a)