summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.28/25Ex28.sce
blob: 3839a4c4fb935c28da79cf506f9fa45fb7f428b7 (plain)
1
2
3
4
5
6
7
8
9
10
//Ch25_Ex28
clc;
clear;
close;
db=1.5; rb=db/2; //diameter and radius of bullet
rc=6; hc=28;//radius and height of cylinder
volC=%pi*rc^2*hc;
volB=(4/3)*%pi*rb^3;
noBullets=volC/volB;
mprintf("THe number of bullets are %d",noBullets);