1 2 3 4 5 6 7 8
clc //initialisation of variables P= 1000 //psi Q= 3 //gpm //CALCULATIONS Fhp= P*Q/(1714) //RESULTS printf ('Fluid horsepower = %.2f hp',Fhp)