blob: a8ca271115b2ac250625779d3b68d66e36df8698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Ch25_Ex17
clc;
clear;
close;
vol=0.88;
l=7; //length
d=2/100; //diameter converting into centimeter
r=d/2;
volRod=%pi*r^2*l;
noRods=vol/volRod; //number of rods
mprintf("The number of rods made are %.0f",noRods);
|