summaryrefslogtreecommitdiff
path: root/3876/CH2/EX2.2/Ex2_2.sce
blob: 20e95f7f2ab4a6646f8a81247bd7ae9162e486c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter 2 Gases

clc;
clear;

//Initialisation of Variables
N= 6*10**23 //molcules
R= 0.0821 //lit atm mole^-1
V= 20 //lit
P= 730 //mm of Hg
T= -20 //C

//CALCULATIONS
M= N*P*V/(760*R*(273+T))

//RESULTS
mprintf("Molecules =%.2e molecules",M)