summaryrefslogtreecommitdiff
path: root/884/CH5/EX5.4/Example5_4.sce
blob: b2d8c91c36cf4ae1792527551353e36e919839b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Ideal Gas Equation

clear;
clc;

printf("\t Example 5.4\n");

m=7.4;//mass of NH3, g

//at STP for NH3 for 1mole of NH3
V1=22.41;// volume, L
NH3=17.03;//molar mass of NH3, g

n=m/NH3;//moles of NH3
V=n*V1;//volume, L

printf("\t the volume of NH3 under given conditions is : %4.2f L\n",V);

//End