clc //initialisation of variables clear n1= 0.25 //mole n2= 0.75 //mole l= 0.0832 //lit T= 50 //C p1= 404 //atm p2= 390 //atm //CALCULATIONS P= n1*p1+n2*p2 //RESULTS printf ('Total Pressure = %.f atm',P)