1 2 3 4 5 6 7 8 9 10
clc //Initialization of variables p=20 //psi t=100+460 //R R0=10.73 M=28 //calculations rho=p/(R0/M *t) //results printf("density of nitrogen = %.4f lbm/ft^3",rho)