summaryrefslogtreecommitdiff
path: root/3782/CH8/EX8.5/Ex8_5.sce
blob: 145b639f23a86fc280b0c4979acb562dbe3593e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29



//

//

printf("\n bottom section')
L=40//m
B=30//m
a1=L*B//m2
printf("\n area A1= %0.3f sq. meters",a1)

printf("\n mid section')
b=40//m
sh=2.5//m

l=L+2*2*sh
b=B+2*2*sh
a2=l*b
printf("\n area A2= %0.3f sq. meters",a2)

printf("\n top section')
sh=5

l1=L+2*sh
b1=B*2*2*sh
a3=l1*b1
printf("\n area A3= %0.3f sq. meters",a3)