summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.23/25Ex23.sce
blob: 2b2f99a2c2b98d19e09a423e6f3662808f40f3c1 (plain)
1
2
3
4
5
6
7
8
9
10
//Ch25_Ex23
clc;
clear;
close;
//since the radii are in in ratio 3:4 and heights in ratio 2:3; 
//let ratio of radii be ratioR
ratioR=(3/4); ratioH=2/3;
ratioV=(%pi*ratioH*ratioR^2)/((1/3)*%pi);
mprintf("The ratio of their volumes is %.2f",ratioV);