summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.27/25Ex27.sce
blob: e44e23630a49d33078926fd6949e6d12a4445e66 (plain)
1
2
3
4
5
6
7
8
9
10
//Ch25_Ex27
clc;
clear;
close;
dl=1; rl=dl/2; //diameter and radius of lead ball
ds=12; rs=ds/2;//diamerer and radius of sphere
volS=(4/3)*%pi*rs^3;
volL=(4/3)*%pi*rl^3;
noBalls=volS/volL;
mprintf("THe number of lead balls are %d",noBalls);