In an inclined pipe, the pressure at its two ends is due to