summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.24/25Ex24.sce
blob: cafd132352a2d3267f3589ad04a84e70087df5f4 (plain)
1
2
3
4
5
6
7
8
//Ch25_Ex24
clc;
clear;
close;
r1=12; h1=50; r2=10;
vol=(1/3)*(22/7)*r1^2*h1;
h2=vol/((22/7)*r2^2);
mprintf("The height to which liquid rises in cylindrical vessel is %.0f cm",h2);