blob: 54ce02a7022deae97a81289d4cd855a5f3f15d3b (
plain)
1
2
3
4
5
6
7
|
clc
//Example 5.6
//calculate velocity of sailboat using pitot tube
h=1//m height of water above the water level
g=9.81//m/s^2
v=(2*g*h)^0.5//m/s
printf("The velocity of sailboat is %f m/s",v);
|