1 2 3 4 5 6 7
//clc() P = 10^7;//Pa; N = 1000; T = 500;//K R = 8.314;//Pa * L / mol K V = N * R * T / ( P * 1000); disp("m^3",V,"(a)Volume of CO2 calculated using ideal gas equation = ")