summaryrefslogtreecommitdiff
path: root/2087/CH4/EX4.2/example4_2.sce
blob: 3e7a8a3968108260e30201032bceb19fd712b180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13


//example 4.2
//calculate precipitation at A using arithmatic mean method
clc;funcprot(0);
//given
pB=48;         //precipitation at B
pC=51;         //precpitation at C
pD=45;         //precipitation at D

pA=(pB+pC+pD)/3;
mprintf("precipitation at A=%i mm.",pA);