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