blob: e11b449d0364b8531df807e890aeb08288f1d349 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
//initialisation of variables
d= 5 //ft
x= 3 //ft
w= 62.4 //lb/ft^3
a= 90 //degrees
//CALCULATIONS
h= ((%pi*d^4/64)+(x^2*%pi*d^2/4))/(%pi*d^2*x/4)
//RESULTS
printf ('depth of the pressure= %.2f ft',h)
|