summaryrefslogtreecommitdiff
path: root/1286/CH3/EX3.2/3_2.sce
blob: b411fcffac35c0c3807ae87e96b2e3a449e87798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
//initialisation of variables
cag=56
cpb=31
cal=220
//CALCULATIONS
mag=1000/cag
mpb=1000/cpb
mal=1000/cal
//results
printf(' mass of silver= % 1f kg',mag)
printf(' mass of lead= % 1f kg',mpb)
printf(' mass of aluminium= % 1f kg',mal)