//Example 13.9 P=7*10^5;//Pressure (Pa) V=2*10^-3;//Volume (m^3) T=18;//Temperature (C) T=T+273;//Temperature (K) R=8.31;//Ideal gas constant (J/(mol.K)) n=(P*V)/(R*T);//Moles (mol) printf('Number of moles = %0.3f mol',n) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest