blob: 291a6ab5c740522f675d934c97dd3746cc66c5c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
////Variable Declaration
csolute = 0.500 //Concentration of solute, g/L
R = 8.206e-2 //Gas constant L.atm/(mol.K)
T = 298.15 //Temperature of the solution, K
//Calculations
pii = csolute*R*T
//Results
printf("\n Osmotic pressure %4.2f atm",pii)
|