summaryrefslogtreecommitdiff
path: root/884/CH1/EX1.1/Example1_1.sce
blob: d0393fc5ac024763e5c616183cf4017883d29f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Computation of density from mass and volume

clear;
clc;

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

m=301;//mass of gold, g
v=15.6;// volume of gold, cm^3

d=m/v;//density of gold, g/cm^3

printf("\t the density of gold is : %4.1f g/cm^3\n",d);


//End