blob: 02d14e386a4f5e278584cecdd0c850d25306e2b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Finding of Height
//Given
p=4.9*10^4; //Pressure intensity in N/mm^2
rho=1000; //Density of water in kg/m^3
g=9.81; //gravitational force in m/sec^2
spgr=0.8; //Specific gravity of oil
w=rho*g;
w1=rho*g*spgr;
//To Find
h=p/w;
h1=p/w1;
disp("Height of water ="+string(h)+" m");
disp("Height of oil ="+string(h1)+" m");
|